easy java key definition & practice

7
Java key definition & practice java programming Nooria Esmaelzade 2016

Upload: nooria-esmaelzade

Post on 09-Apr-2017

38 views

Category:

Self Improvement


0 download

TRANSCRIPT

Page 1: Easy java key definition & practice

Java key definition & practice

java programmingNooria Esmaelzade

2016

Page 2: Easy java key definition & practice

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*/

Page 3: Easy java key definition & practice

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

Page 4: Easy java key definition & practice

Reserved words abstractassertbooleanbreakbytecasecatchcharclassconstcontinue

defaultdodoubleelseenumextendsfalsefinalfinallyfloatfor

gotoifimplementsimportinstanceofintinterfacelongnativenewnull

packageprivateprotectedpublicreturnshortstaticstrictfpsuperswitch

synchronizedthisthrowthrowstransienttruetryvoidvolatilewhile

Page 5: Easy java key definition & practice

Modifiers PublicPrivateProtectedFinalAbstractstatic

Page 6: Easy java key definition & practice

Class A blue print for the objects

Page 7: Easy java key definition & practice

Show message in a box