Skip to main content

JAVA: Basic

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.
2. Keyword : eg: try, catch, if, do, while, for etc.
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

Popular posts from this blog

I Wish for a WISH

Wish I can wish for a chance A chance to win A chance to be better   A chance to be the best daughter But I don’t want to regret a thing Am happy the way I think The only thing that I wish Let me be me please. I don’t want to hurt anyone I don’t want to lie I just want to see everyone happy The only thing that I wish Let me be me please.                                                                                                          ...

Fantasy Dream Poem

How nice it would be, If we can dance over the rainbow, Sleep over the clouds, Shine with the stars, And bless others with the raindrops. I know it’s a fantasy dream, But nothing is impossible!

First Love

When I first saw you, I felt my own heart beat, When I first talked to you, I felt the butterflies in me, When I first met  you , I felt like i found ma life, When I feel in love with  you , I saw my future with  you , But all those were mai thoughts, Cause  you  didn't love me at all, I thought  you  loved me, Until I saw  you  wid her, Doing whatever  you  did with me, All my feelings went away, It felt like a glass broke down, It still hurts, I hope tht  you  wud stay happy, I hope that  you would  live , All I want to see is you being happy.                                                       ...