• Post Reply Bookmark Topic Watch Topic
  • New Topic

About strictfp  RSS feed

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1.Please clarify, if they do ask such questions in the SCJP1.2 examination about Class modifier called “strictfp” ??
2. Why is Vector said to be synchronized ? None of its methods are declared synchronized? Similarly in Hashtable?

:roll:
 
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1.Please clarify, if they do ask such questions in the SCJP1.2 examination about Class modifier called �strictfp� ??
Somebody asked the same question no later than yesterday. Please have a look at it:
http://www.coderanch.com/t/240305/java-programmer-SCJP/certification/strictfp
2. Why is Vector said to be synchronized ? None of its methods are declared synchronized? Similarly in Hashtable?
How's that? All methods of java.util.Vector are synchronized. Since synchronization is an implementation detail, the keyword does not appear in the API, you will have to look at the sources instead.
 
Preety Narashimhan
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot..
was confused about the syncronization coz i did not see it specified in the API's
Thanks once again
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!