Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

whey Boolean b = true, could not be acceptable

 
Saed Hussein
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have making online test and i saw this, look image below:

the question displaying is from this website 4Tests Website.
question number is this: Question4


java.png
[Thumbnail for java.png]
 
Roel De Nijs
Sheriff
Posts: 10662
144
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Saed Hussein wrote:I have making online test and i saw this, look image below:

Based on this question and its correct answers, I would immediately make it eligible for garbage collection (And yes, pun was intended)

First of all, this question relies heavily on knowledge of different APIs (AWT, Swing, Applet) which are not covered on the OCAJP exam (nor on the OCPJP exam). Secondly it seems to be unaware of the autoboxing feature which was added in Java 5. And that's why a statement like Boolean flag = true; will result in a compiler error. Prior to Java 5 you had to write this code to convert a primitive data type into a wrapper class instanceAnd finally because answer options are duplicated which makes no sense at all.

So these tests are very poor quality and I should recommend not to waste your time anymore answering these very poor questions! And it might even result in learning wrong things (like with this statement) which is of course completely unacceptable!

Hope it helps!
Kind regards,
Roel
 
Saed Hussein
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this question totaly wrong or it is outdated with OCAJP 8 and 7.
 
Henry Wong
author
Marshal
Pie
Posts: 22118
88
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Saed Hussein wrote:this question totaly wrong or it is outdated with OCAJP 8 and 7.


Based on the error, I would say it has been outdated with SCJP 5.

Henry
 
Saed Hussein
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Roel De Nijs, Henry Wong;
would you please recommend / suggest me a freeware other than paid enthuware, which i can practice my expertise in java.
 
Roel De Nijs
Sheriff
Posts: 10662
144
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Saed Hussein wrote:this question totaly wrong or it is outdated with OCAJP 8 and 7.

Both! It's not only outdated but it requires also knowledge of APIs you don't need to know for the OCA exams.
 
Roel De Nijs
Sheriff
Posts: 10662
144
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Saed Hussein wrote:would you please recommend / suggest me a freeware other than paid enthuware, which i can practice my expertise in java.

In the OcajpFaq you'll find an overview of free and commercial mock exams.

Is there any reason why you don't want to consider Enthuware? It's currently without any doubt the best mock exam software on the market and with only 10 USD it offers excellent value for quality.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic