SO TODAY I WILL BEGIN WITH PROGRAMMING.... THE FIRST STEPS TO IT....
FIRSTLY: Concept of Datatypes in Java
Each individual character in a Java program is termed as a token.It is a fundamental unit of Java Program. It may be related to the cell in human body.
TOKENS ARE OF 6 TYPES:
1. Literals
2. Identifiers
3. Assignments
4. Punctuators
5. Separators
6. Operators
LITERALS
1. String Literals(e.g. "Romit Ghosh")
2. Real Literals (e.g. 2.6,24.89.-5.45,1.0E-03)
3. Character Literals (e.g. 'A','d','3')
4. Boolean Literals (e.g. true or false)
5. Null Literals
6. Integer Literals (e.g. 14,99,-123,-435)
NOW WE SHALL GO FOR DATA TYPES
PRIMITIVE DATATYPE
Numeric Types
1. Integer
2. Floating Numbers
Non Numeric Types
1. Character
2. Boolean
3. String
NON-PRIMITIVE DATA TYPES
1. Classes
2. Arrays
3. Interface
4.String
------------------------------------------------------------------------------------------------------------
In Integers there are: byte, int, short, long
In Floating Numbers there are: float, double
In Character: char
In Boolean: boolean
In String: string
------------------------------------------------------------------------------------------------------------
SO, NOW YOU SHOULD GET INTRODUCE TO JAVA CODING
public class zebra
{
public static void main (String args[])
{
System.out.println("HELLO WORLD!!!");
}
}
Q1/ Why is public used?
Ans: To make the class public , usable and accessible by all.
Q2/ What are classes?
Ans: A class is a blue print from which individual objects are created.
Q3/ What is the use of static?
Ans: We use static to make a function the first to get compiled.
Q4/ What we use void?
Ans: Void is a return type which is used when we have to return nothing.
Q5/ What we do to print a statement?
Ans: System.out.print and to print in next line System.out.println
------------------------------------------------------------------------------------------------------------
TO KNOW MORE STAY TUNED TO : http://romitcooltricks.blogspot.com/
FIRSTLY: Concept of Datatypes in Java
Each individual character in a Java program is termed as a token.It is a fundamental unit of Java Program. It may be related to the cell in human body.
TOKENS ARE OF 6 TYPES:
1. Literals
2. Identifiers
3. Assignments
4. Punctuators
5. Separators
6. Operators
LITERALS
1. String Literals(e.g. "Romit Ghosh")
2. Real Literals (e.g. 2.6,24.89.-5.45,1.0E-03)
3. Character Literals (e.g. 'A','d','3')
4. Boolean Literals (e.g. true or false)
5. Null Literals
6. Integer Literals (e.g. 14,99,-123,-435)
NOW WE SHALL GO FOR DATA TYPES
PRIMITIVE DATATYPE
Numeric Types
1. Integer
2. Floating Numbers
Non Numeric Types
1. Character
2. Boolean
3. String
NON-PRIMITIVE DATA TYPES
1. Classes
2. Arrays
3. Interface
4.String
------------------------------------------------------------------------------------------------------------
In Integers there are: byte, int, short, long
In Floating Numbers there are: float, double
In Character: char
In Boolean: boolean
In String: string
------------------------------------------------------------------------------------------------------------
SO, NOW YOU SHOULD GET INTRODUCE TO JAVA CODING
public class zebra
{
public static void main (String args[])
{
System.out.println("HELLO WORLD!!!");
}
}
Q1/ Why is public used?
Ans: To make the class public , usable and accessible by all.
Q2/ What are classes?
Ans: A class is a blue print from which individual objects are created.
Q3/ What is the use of static?
Ans: We use static to make a function the first to get compiled.
Q4/ What we use void?
Ans: Void is a return type which is used when we have to return nothing.
Q5/ What we do to print a statement?
Ans: System.out.print and to print in next line System.out.println
------------------------------------------------------------------------------------------------------------
TO KNOW MORE STAY TUNED TO : http://romitcooltricks.blogspot.com/