This the simple hello world program in java ,In this we can make a simple sytnax error and finding some of it,
1)If we can remove an class in first line ,
2)If we reomve an file name(Home)
here the expected should be , which an file name
3)If we remove static in second line
the java complier is creating the byte code but the output is error.
4)If we remove void ,
Here the method declaration error which denoting the void is required
5)If we remove main
here the means main , beacuse Main is the method name the JVM looks for as the entry point of the program.
6)if we remove String[]args,
the java complier is creating a byte code but output have not be successful
8)If we removed System. ,
9) If we remove out or Out in frist letter in case sensitive
this for Out in first letter case Sensitive,
10)If we removed println ,
here the < identifer> required as println
11) If there is no content in java file eventhough extension is .java












Top comments (0)