Java Programming - Objects and Collections - Discussion
Discussion Forum : Objects and Collections - General Questions (Q.No. 12)
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
Discussion:
6 comments Page 1 of 1.
Aarti gupta said:
8 years ago
For the scope of default it is by default given to the variable. We never writes the default as access specifier. So how does it becomes a keyword.
Antrish Mishra said:
9 years ago
Is Box a keyword in Java?
Munu said:
9 years ago
I thought It question is for java keyword which are not used in java but reserved like go to, const.
Vikas grover said:
10 years ago
Default is the convention of every construct of java by nature, if not explicitly specified.
Jill jung juck said:
1 decade ago
Interface is a keyword while implement is not :D.
Wahid ali said:
1 decade ago
1. Run is not a keyword in java public void run () is predefined methods of thread class so run can't be keyword,
2. Import is predefined keyword of java which is used to import some standard java packages. For example-import java.lang.*; etc. So it is correct answered.
3. Default is correct answer, default in java used to mention class scope specification.
4. Implement is not correct answer, because its nothing in java, yes implements is a keyword which is used to interface implementation.
2. Import is predefined keyword of java which is used to import some standard java packages. For example-import java.lang.*; etc. So it is correct answered.
3. Default is correct answer, default in java used to mention class scope specification.
4. Implement is not correct answer, because its nothing in java, yes implements is a keyword which is used to interface implementation.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers