What Is A Jav

What Is A Jav



⚑ πŸ‘‰πŸ»πŸ‘‰πŸ»πŸ‘‰πŸ» INFORMATION AVAILABLE CLICK HERE πŸ‘ˆπŸ»πŸ‘ˆπŸ»πŸ‘ˆπŸ»

































What Is A Jav
Java Training (40 Courses, 29 Projects, 4 Quizzes) 40 Online Courses | 29 Hands-on Projects | 285+ Hours | Verifiable Certificate of Completion | Lifetime Access | 4 Quizzes with Solutions 4.8 (8,240 ratings)
Course Price $129 $599 View Course
Java is a computing platform for application development and an object-oriented, Class-based and Concurrent programming language which means many statements can be executed at the same time instead of sequentially executing it. It can r unΒ onΒ all platforms andΒ free to access.
The following are important points:
Since its evolution, It has continuously gained popularity in the market and it is one of the most commonly used languages for developing applications today.
The following are the most important features:
Because of all the above-explained features, java is one of the commonly used and popular languages for application development.
Now we will see different applications. Here are some of the common domains in which it is used:
1. Banking and Financial Domain: Banking domain makes use of java for handling transactions. It performs exceptionally well while handling millions of transactions in an efficient way.
2. Information Technology: Using java following types of applications can be developed:
The following are some server-side technologies provided:
Apart from server-side technologies one of the most commonly used application server apache tomcat is developed using java.
3. Stock Market : It is used for developing algorithms involving stock market analysis.
4. Retail : It is also used in developing billing applications used in malls, shops, and other places.
Let us see a basic example. The main method is the entry point to the java application.
In this example, we will see how the main method is defined
package com.edubca.javademo;
public class JavaDemo{
public static void main(String args[]){
String str="This is Edubca Java Training";
System.out.println(str);Β  //printing on console
}
}
Output:
Explanation to the above code: we have seen how a class is declared and declaration of the main method. Inside the main method, System.out.println () is used which accepts a string as an argument and is used to print the specified string on the console.
In this example we will see how mathematical calculations like add, subtract, multiply and divide are implemented.
package com.edubca.javademo;
public class JavaDemo{
public int add(int a, int b){
int c= a+b;
return c;
}
public int substract(int a, int b){
int c= a-b;
return c;
}
public int multiply(int a, int b){
int c= a*b;
return c;
}
public int divide(int a, int b){
int c= a/b;
return c;
}
public static void main(String[] args) throws Exception {
// Declare variables
int a= 10;
int b= 5;
//create instance of JavaDemo class
JavaDemo jdemo= new JavaDemo ();
int addresult=jdemo.add(a,b);Β Β  // invoke add method of JavaDemo
int substractresult=jdemo. substract (a,b);Β Β  // invoke substract method of JavaDemo
int multiplyresult=jdemo.multiply(a,b);Β Β  // invoke multiply method of JavaDemo
int divideresult=jdemo.divide(a,b);Β Β  // invoke divide method of JavaDemo
System.out.println("Addition of 10 and 5 is " + addresult );
System.out.println("Subtraction of 10 and 5 is " + substractresult );
System.out.println("Multiplication of 10 and 5 is " + multiplyresult );
System.out.println("Division of 10 and 5 is "+ divideresult );
}
}
Explanation to the above code:Β  In the above example we have seen how to create a class, declare methods, create the class object and calling declared methods through the object.
In this example we will see a program to find all prime numbers between two numbers:
Code:
package com.edubca.javademo;
public class JavaDemo{
public static void main(String args[]){
//declare variables
int low=10; int high=80;
System.out.println("Prime numbers between 10 and 80 are : ");
// while loop
while(low < high){
boolean isprime=true;
// for loop in java
for(int i=2; i< low/2; i++){
if(low % i==0){
isprime=false;
break;
}
}
if(isprime){
System.out.println(low + " ");
}
low++;
}
}
}
Explanation to the above code:Β  The above program shows the use of a while loop and for loop. The above program will produce the following output:
In this example, we will see how to print Fibonacci series up to a number
Code:
package com.edubca.javademo;
public class JavaDemo{
// declaring static method printfabonacci
static int printfabonacci ( int i){
if(i==0){
return 0;
}
if(i==1 || i==2){
return 1;
}
// calling method recursively
else{
return printfabonacci (i-1)+ printfabonacci (i-2);
}
}
public static void main(String args[]){
int maxnumbers=10;Β Β  // max numbers in Fibonacci
String str="";
for(int i=0; iAsian Micro Bikini
Stocking Porm
Nozomi Kawasaki
Asian Wife Sex Video
Free Blojob Porn

Report Page