Skip to main content

What is JAVA?

Java is a High Level Programming language used for developing applets, android applications, used in ATM machines, etc.  Java gives us various types of Libraries which makes easier to use it. There are many version of java are availiable like jdk 7, jdk 8, etc.

Simple Programming

import java.util.*;
class java
{
public static void main()
{
int a,b,c;
a=20;
b=30;
c=a+b;
System.out.println(c);
}
}

Output

50

Comments

Popular posts from this blog

Java Libraries

1. java.lang: it is used to support classes containing String, Character, Math, Integer, Thread, etc. 2. java.io: to support stream reader classes to deal with input and output statement. 3. java.applet: to support classes to generate applet - specific environment. 4. java.net: to support classes for network related operations and dealing with URL(Uniform Resource Locator) 5. java.awt: to support abstract window tool kit and also to manage GUI(Graphical User Interface) 6. java.txt: for supporting text elements such as dates, times and currency etc. 7. java.math: to support mathematical function such as square roots( integer and decimal both) In the first phase we will be continuing with basic program in BlueJ and some theories which will help you to understand

Basic Program: WAP to print the sum of 20 and 50.

Wap to print the sum of 20 and 50 import java.util.*; class java { public static void main() { int a,b,c; a=20; b=30; c=a+b; System.out.println(c); } } Output 50 Data Type used:- Integer- int Operator used:- Addition- (+) Explaination 1. From import java.util to public static void main() it is a package except the bracket. 2. Class is used to define the class which we are using example class java. 3. Opening brackets are used to give instruction to the program that the particular program is starting from where and ending where 4. System.out.println() is used to give the output. 5. System.out.println(c): the C inside the bracket is the specific output like a=40 b=30 c=a+b It defines that where the program is executing. I can be d also depending on the program which we are doing. 6. (;) is used to confirm the program that the specific line is ending System.out.println();