Environmental Sciences, asked by dainvincible1, 1 year ago

Which one of these lists contains only Java programming language keywords?
A. class, if, void, long, Int, continue
B. goto, instanceof, native, finally, default, throws
C. try, virtual, throw, final, volatile, transient
D. strictfp, constant, super, implements, do
E. byte, break, assert, switch, include

Answers

Answered by snehitha2
4
Which one of these lists contains only Java programming language keywords?
A. class, if, void, long, Int, continue
B. goto, instanceof, native, finally, default, throws
C. try, virtual, throw, final, volatile, transient
D. strictfp, constant, super, implements, do
E. byte, break, assert, switch, include


Option (B) is correct.

Option A is wrong because int started with uppercase. It must be started with lowercase.

Option C is wrong because virtual is not Java,it's a keyword in C++

Option D is wrong because constant is not a keyword. In java, it is marked as static and final.

Option E is also wrong because include is a keyword in C but not in Java.
Answered by Superstar100
0
All the words in option B are among the 49 Java keywords.

Although goto reserved as a keyword in Java, goto is not used and has no function.

Option A is wrong because the keyword for the primitive int starts with a lowercase i.

Option C is wrong because "virtual" is a keyword in C++, but not Java.

Option D is wrong because "constant" is not a keyword. Constants in Java are marked staticand final.

Option E is wrong because "include" is a keyword in C, but not in Java.
Similar questions