This document contains an assignment from Blue Ridge Public School for Class IX students on computer applications. It includes 5 questions about concepts in Java programming like Unicode, tokens, identifiers, keywords and rules for naming identifiers. Some of the main Java keywords listed are public, static, void, new, int, byte, short, long, char, and boolean.
This document contains an assignment from Blue Ridge Public School for Class IX students on computer applications. It includes 5 questions about concepts in Java programming like Unicode, tokens, identifiers, keywords and rules for naming identifiers. Some of the main Java keywords listed are public, static, void, new, int, byte, short, long, char, and boolean.
This document contains an assignment from Blue Ridge Public School for Class IX students on computer applications. It includes 5 questions about concepts in Java programming like Unicode, tokens, identifiers, keywords and rules for naming identifiers. Some of the main Java keywords listed are public, static, void, new, int, byte, short, long, char, and boolean.
Ans: An identifier can be of any length It may contain alphabets, digits, underscore (_) or dollar sign ($) characters It must not be a keyword or true, false or null literal It must not begin with a digit It can start with only 2 special characters $ and _ Eg: String _s; int $n1; It must not contain white spaces 5. Define Keywords. List any ten keywords available in Java. Ans: A keyword is one of the 50 reserved words that have a predefined meaning in the language. Keywords have special meaning to the Java compiler. Eg: public, static, void, new, int, byte, short, long, char, boolean, float