Knowledge Walls
Java Master
Hyderabad, Andhra Pradesh, India
Keyword java in What of Core Java
3286 Views
Reserved words in Core Java 
abstract continue for new switch
assert default goto package synchronized
boolean do if private this
break double implements protected throw
byte else import public throws
case enum instanceof return transient
catch extends int short try
char final interface static void
class finally long strictfp volatile
const float native super while
Hints 
Not used reserved words
goto, const

Added in 1.2
strictfp

Added in 1.4
assert

Added in 1.5
enum
ExampleWithJavaBasicProgram
class HelloJavaExample {
    public static void main(String args[]){
        int a = 10;
        int b = 20;
        
        int c = a + b;
        System.out.println("C value is ",c);
    }
}
Hints 
In above example class, public, static, void, main and int words are reserved words. which are all highlighted in blue color.
  Copyright © 2014 Knowledge walls, All rights reserved
KnowledgeWalls
keep your tutorials and learnings with KnowledgeWalls. Don't lose your learnings hereafter. Save and revise it whenever required.
Click here for more details