T7: Knowledge Tip Of The Day...
Variable Initialization Declaration
How To Declare Variable :
Integer
This group includes byte, short, int, long
byte : It is 8 bit (1 byte) integer data type. Value range from -128 to 127. Default value zero.
example: byte b=10;
short : It is 16 bit (2 byte) integer data type. Value range from -32768 to 32767. Default value zero.
example:short s=11;
int : It is 32 bit (4 byte) integer data type. Value range from -2147483648 to 2147483647. Default value zero. example:int i=10;
long : It is 64 bit (8 byte) integer data type. Value range from -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807. Default value zero.
example: long l=100012;
Integer
This group includes byte, short, int, long
byte : It is 8 bit (1 byte) integer data type. Value range from -128 to 127. Default value zero.
example: byte b=10;
short : It is 16 bit (2 byte) integer data type. Value range from -32768 to 32767. Default value zero.
example:short s=11;
int : It is 32 bit (4 byte) integer data type. Value range from -2147483648 to 2147483647. Default value zero. example:int i=10;
long : It is 64 bit (8 byte) integer data type. Value range from -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807. Default value zero.
example: long l=100012;
Floating-Point Number
This group includes float, double
float : It is 32 bit (4 byte) float data type. Default value 0.0f.
example: float ff=10.3f;
double : It is 64 bit (8 byte) float data type. Default value 0.0d.
example: double db=11.123;
float : It is 32 bit (4 byte) float data type. Default value 0.0f.
example: float ff=10.3f;
double : It is 64 bit (8 byte) float data type. Default value 0.0d.
example: double db=11.123;
Characters
This group represent char, which represent symbols in a character set, like letters and numbers.
char : It is 16 bit (2 byte) unsigned unicode character. Range 0 to 65,535.
example: char c='a';
BooleanThis group represent char, which represent symbols in a character set, like letters and numbers.
char : It is 16 bit (2 byte) unsigned unicode character. Range 0 to 65,535.
example: char c='a';
This group represent boolean, which is a special type for representing true/false values. They are defined constant of the language.
example: boolean b=true;
#Java #Learn #Upgrade
#Training #Classes #OnlineLecture #OnlineVideos #Pune
#Call Now to book your
seat to JOIN Java Training @ 7219474925.
#Java
#J2EE
#Core
+#Advance + #Struts +#Hibernate + #Spring + #REST + #OCJP + #OCWCD + #Maven +
#Junit + #Jquery #Ajax + #XML
#Spring
Boot + CI and many more ..
#Selenium
#Complete
#Java + #Selenium + #TestNg + #Jenkin + #Webdriver + #Cucumber +#Maven +
#DataProvider + #Keyword + #Hybrid + #POM End to End integration #Jenkin #Maven
#Testng and many more ..
#JavabyKiran
#Expert #Training #BestInstitute #Java #Python #Selenium #Freshers
#Professionals #IT #Software #Career #Interview #Jobs#Jobopening #BestTrainingInstituteinPune #ITCourses #OnlineVideo #Pune
Regards,
#Java #Learn #Upgrade #Training #Classes
#OnlineLecture #OnlineVideos #Pune
No comments:
Post a Comment