Java was developed in 1990 as OAK by James Gosling and his friends. Java was mainly famous for automatic memory allocation and garbage collection.
Most of you might have heard alot about compiler and interpreter while studying JAVA. Well, compiler compiles the program i.e. it checks if there is any error in the program and interpreter interprets the error i.e. it checks for the error during run time like if the size of memory is less.
BASIC STRUCTURE of JAVA PROGRAM:
1. Packages : libraries
2. Import : import the methods required
3. Class : create a class
4. Methods : create you own methods.
JAVA TOKENS:
1. Identifier : names associated with the packages, class , and methods.
1. Packages : libraries
2. Import : import the methods required
3. Class : create a class
4. Methods : create you own methods.
JAVA TOKENS:
1. Identifier : names associated with the packages, class , and methods.
3. Separator : eg: (), {}, [], ; etc.
4. Operator : +, -, ++, --, /, % etc.
5. Literal : values
6. Comment : //, /*..*/
DATA TYPES
int 32bits
float 32bits
character 16bits
boolean 8bits
byte 8bits
short 16bits
long 64bits
double 64bits
NEXT
Comments
Post a Comment