Skip to main content

A message for you

You can connect with me on Telegram - @aarifhusaincom





Comments

Popular posts from this blog

Java Language Keywords

Java Language Keywords Here is a list of keywords in the Java programming language. You cannot use any of the following as identifiers in your programs. The keywords const and goto are reserved, even though they are not currently used.   true, false, and null might seem like keywords, but they are actually literals; you cannot use them as identifiers in your programs. abstract assert*** boolean break byte case catch char class const* continue default do double else enum**** extends final finally float for goto* if implements import instanceof int interface long native new package private protected public return short static strictfp** super switch synchronized this throw throws transient try void volatile while *  not used ( const* ,  goto* ) **  added in 1.2 ( strictfp** ) ***  added in 1.4 ( assert*** ) ****  added in 5.0 ( enum**** ) Note:  The Java Tutorials have been written for JDK 8. Examples and practices described in this page don't take advan...

Data type in Java

Data type in Java Boolean Data Type The Boolean data type is used to store only two possible values: true and false. This data type is used for simple flags that track true/false conditions. The Boolean data type specifies one bit of information, but its "size" can't be defined precisely. Example: Boolean one =  false    Byte Data Type The byte data type is an example of primitive data type. It isan 8-bit signed two's complement integer. Its value-range lies between -128 to 127 (inclusive). Its minimum value is -128 and maximum value is 127. Its default value is 0. The byte data type is used to save memory in large arrays where the memory savings is most required. It saves space because a byte is 4 times smaller than an integer. It can also be used in place of "int" data type. Example: byte  a =  10 ,  byte  b = - 20    Short Data Type The short data type is a 16-bit signed two's complement integer. Its value-range li...