Q. What is keywords in java?How many keywords are there in java?
Ans:
Keywords are the reserved words in java language that have a
predefined meaning.Keywords cannot be used as names for variables,
methods, classes, or as any other identifier.There are total 50 keywords
in java. Example: abstract, assert, break, case, catch, class, const, continue, default, do, double, else, enum, extends, final, finally, float, for, goto, if,implements, import, instanceof, int, interface, long, native, new, package, private, protected, public, return, short, static, strictfp, switch, super, synchronized, this, throw, throws,transient,try,void, volatile, while,do.
No comments:
Post a Comment