• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can you guys confirm that I'm studying the right stuff ?

 
Cedric Bosch
Ranch Hand
Posts: 92
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey, I'm quite stressed out because I've been studying some of the wrong things (I think). On Saturday I decided I would like to pass the certification and planned to pass the exam on Wednesday . I read everything that is in there : https://docs.oracle.com/javase/tutorial/java/index.html. When reading I figured that I knew generics, lambda and the stream api only on a superficial level and I might need more time to pass the exam. However I just re-checked the topic of the questions of 1Z0-808, and to my surprise there is no lambda/generics/stream.


First question : So can someone confirm there are no lambda, generics and stream, please ? I just want to be 100% sure :s .

Second question : Is there a possibility that they forget a brace { or put one too much so the code doesn't compile ? I wouldn't like to lose precious time on that if this is not the case.

Third question:
Unintended line breaks: Sample code might have unintended line breaks. If you see a line of code that looks like it has wrapped, and this creates a situation where the wrapping is significant (for example, a quoted String literal has wrapped), assume that the wrapping is an extension of the same line, and the line does not contain a hard carriage return that would cause a compilation failure.


Does that mean that I must act like this would compile :


If so what could be a scenario where this unintended line break would infer with the answer ?

fourth question : what about bitwise operators ? Is it in the exams? I'm talking about >>> and stuff.


N.B: Is it just me thinking the way they format the code to throw off people is retarded ? I mean.. I would reconsider my life choices if I were to be reading something like that irl or at the very least take a shower. I understand the intention and that given enough monkey something like that might happen but it's so far removed from reality I just think it's needlessly "tricky" and divert from the real substance.
"You didn't see we put 19 braces here instead of 20. Haha, You fool".
Beside one could just auto format it. /rant



PS : Everytime I edit that post I must put [URL] around my url because there is please in them. Annoying.
 
Roel De Nijs
Sheriff
Posts: 10662
144
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cedric Bosch wrote:First question : So can someone confirm there are no lambda, generics and stream, please ? I just want to be 100% sure :s .

The OCAJP certification exam is an entry-level exam and covers Java and OO basics. According to the exam objectives you should be able to write a simple Lambda expression that consumes a Lambda Predicate expression. And you also need very basic knowledge about generics (e.g. ArrayList<String> is valid syntax). The OCPHP certification exam is the advanced exam and test your knowledge about streams, generic methods/classes and lambdas.
I assume you didn't have used a study guide to prepare yourself for this exam, otherwise you would have known exactly what to study for the exam.

Cedric Bosch wrote:Second question : Is there a possibility that they forget a brace { or put one too much so the code doesn't compile ? I wouldn't like to lose precious time on that if this is not the case.

If one of the answer options is "Compilation fails" (or something similar), you have to verify if the code snippet doesn't have any compiler errors. And you have to obviously look for everything which can result in a compiler error: missing brace, instantiating an asbtract class, variable used out of scope, illegal method overriding, illegal identifier, and so on.

Cedric Bosch wrote:Does that mean that I must act like this would compile :

If so what could be a scenario where this unintended line break would infer with the answer ?

Probably! Although I have to admit that I have never encountered such a question on the actual exam. You might consider taking the (free) Trial Version of Enthuware mock exams. It will give you a very good idea about which questions to expect. And based on your score, you'll immediately know if you are ready to take the actual exam (on Wednesday) or if you have to do some additional studying.

Cedric Bosch wrote:I understand the intention and that given enough monkey something like that might happen but it's so far removed from reality I just think it's needlessly "tricky" and divert from the real substance.
"You didn't see we put 19 braces here instead of 20. Haha, You fool".
Beside one could just auto format it. /rant[/i]

In my experiences you very rarely encounter code snippets which are formatted really poorly. And the code snippets are always very concise, so it is more likely that the Netherlands (although not qualified) will win the European Championships 2016 than getting a question with 19 or 20 braces I even can't remember having faced an intended wrongly indented else in a code snippet

Hope it helps!
Kind regards,
Roel
 
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
Cedric Bosch wrote:fourth question : what about bitwise operators ? Is it in the exams? I'm talking about >>> and stuff.

No! These operators are (finally) removed from the OCPJP certification exam as well.

Cedric Bosch wrote:Everytime I edit that post I must put [URL] around my url because there is please in them. Annoying.

Or you could simply use the URL tag to create a link with a link text (as I did in your original post).
 
Cedric Bosch
Ranch Hand
Posts: 92
3
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much but I feel like you are underestimating what the Netherlands is capable of. Dutchs are very sneaky. I wouldn't put it past them to find a way
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35279
384
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Roel De Nijs wrote:If one of the answer options is "Compilation fails" (or something similar), you have to verify if the code snippet doesn't have any compiler errors. And you have to obviously look for everything which can result in a compiler error: missing brace, instantiating an asbtract class, variable used out of scope, illegal method overriding, illegal identifier, and so on.

In theory. I've never seen them have unbalanced braces. By contrast, I have seen things like

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic