Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

question error ?

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in the site http://www.javaprepare.com/quests/funda_q.html there is a question on valid java reserved words - question no. 4
4.Which of the following are Java keywords. Select all the correct answers.
A.super
B.strictfp
C.void
D.synchronize
E.instanceof
the answer is given as a,b,c,e - is 'b' a right answer ??
 
Amit Punjwani
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes Shyamala,
strictfp is Java keyword. I guess it tells the compiler to perform certain floating point optimizations with floating point literals.
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is true....strictfp is also a reserved word.
 
Shyamala S
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks guys, this is really news to me
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic