Tuesday, 15 September 2009

Java Certification Question 0096

Which of the following are Java key words?

1)double
2)Switch
3)then
4)instanceof




Answer :

1)double
4)instanceof

Note the upper case S on switch means it is not a keyword and the word then is part of Visual Basic but not Java. Also, instanceof looks like a method but is actually a keyword,

No comments: