• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

More then the specified answer?

 
Nabila Mohammad
Ranch Hand
Posts: 664
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I came across few questions in Whizlab where I thought there were more then the the specified answer.(I obviously may be wrong)
In that case wht is one supposed to do.



For eg.

Which of these are keywords in Java? Select 3

A.default
B.NULL
C.String
D.throws
E.long


I belived the answer is default,String,throws,long

But here it is specified to select 3.
 
Henry Wong
author
Marshal
Pie
Posts: 21515
84
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is the list of Java keywords:

http://java.sun.com/docs/books/tutorial/java/nutsandbolts/_keywords.html

String is a name for a class, in the java.lang package.

Henry
 
vidhya suvarna
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
String is not a keyword, its a class.
 
Deepak Chopra
Ranch Hand
Posts: 433
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
String is not a keyword. There are very rare chance of getting these type of question on SCJP exam. I did not get any. So you don't need to worry.
 
Nabila Mohammad
Ranch Hand
Posts: 664
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks guys!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic