#13 What is Keyword in Java | 50 keyword in Java programming Language with Example
package com.sudhirtheindian2.java123;
public class keyword {
public static void main(String[] args) {
// What is keyword and how many keyword in java ?
// keyword are the registered word whose meaning is already
// defined in the java compiler
// 1 we can not use keyword for our personal use
// int int =1; we can not use int as variable name
int a = 2;
// int int =2;
// 2 keyword are case sensitive
// int - ---- INT
// int a = 1
// inT a =3
// 50 keyword in java language
//
// byte ,short ,int, long, float, double, void ,char, boolean, if
// else ,for , do, while, break, continue, default ,private, protected
// public, extends ,implements ,final ,finally ,try, throw, throws
// static, volatile, import, class, interface, new, native, instanceof
// package ,return, this ,super, switch, case
// assert ,abstract ,transient ,synchronized
// goto, const ---not used
// strictfp 1.2 version added
// enum 5.0 version added
//
//
// null, true, false used as a literal in java
// 50+3 literal
}
}
टिप्पणियाँ
एक टिप्पणी भेजें