Java Programming - Language Fundamentals - Discussion

Discussion Forum : Language Fundamentals - General Questions (Q.No. 4)
4.
Which is a reserved word in the Java programming language?
method
native
subclasses
reference
array
Answer: Option
Explanation:

The word "native" is a valid keyword, used to modify a method declaration.

Option A, D and E are not keywords. Option C is wrong because the keyword for subclassing in Java is extends, not 'subclasses'.

Discussion:
25 comments Page 3 of 3.

Hitesh said:   8 years ago
Thanks @Naresh.

Mahendra said:   8 years ago
Thank you friends.

Rushikesh said:   7 years ago
native is the return type of method or function.

Manupriya said:   7 years ago
Thanks for the answer @Naresh.

Jaswanth Nelam said:   5 years ago
@Rushikesh.

No, it's not a return type, it is a keyword.


Post your comments here:

Your comments will be displayed after verification.