Download - Easy java key definition & practice
Java key definition & practice
java programmingNooria Esmaelzade
2016
Comments // this is a single comment
/*this is a block comment * it can be more than one line*/
/** this is a javadoc comment *It is used to display the longer comment *We can generate a html page by using javadoc command in CMD*/
Examples /* UnicodeCommentDemo.java * Java programs are written using Unicode characters * Unicode presenting a character recognized as usual Java token */ public class ClassBExcersise{ public static void main(String[] args) { // The method will print hello java in console
System.out.println(“hello java”); }}
Paragraph comment example
Single line comment example
Reserved words abstractassertbooleanbreakbytecasecatchcharclassconstcontinue
defaultdodoubleelseenumextendsfalsefinalfinallyfloatfor
gotoifimplementsimportinstanceofintinterfacelongnativenewnull
packageprivateprotectedpublicreturnshortstaticstrictfpsuperswitch
synchronizedthisthrowthrowstransienttruetryvoidvolatilewhile
Modifiers PublicPrivateProtectedFinalAbstractstatic
Class A blue print for the objects
Show message in a box