Java Programming - Objects and Collections
Exercise : Objects and Collections - General Questions
- Objects and Collections - General Questions
- Objects and Collections - Finding the output
- Objects and Collections - Pointing out the correct statements
11.
What is the numerical range of char?
Answer: Option
Explanation:
The char type is integral but unsigned. The range of a variable of type char is from 0 to 216-1 or 0 to 65535. Java characters are Unicode, which is a 16-bit encoding capable of representing a wide range of international characters. If the most significant nine bits of a char are 0, then the encoding is the same as seven-bit ASCII.
12.
Which of the following are Java reserved words?
- run
- import
- default
- implement
Answer: Option
Explanation:
(2) - This is a Java keyword
(3) - This is a Java keyword
(1) - Is incorrect because although it is a method of Thread/Runnable it is not a keyword
(4) - This is not a Java keyword the keyword is implements
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers