Hello folks! I've been lurking this site for a couple of days now and am glad I met you. My first question is simple:
In most of the (few) respectable "mock" exams that I have reviewed so far, they DO NOT play nasty games of INTENTIONALLY mispelling statements, variable names, etc..., althogh they ARE tricky in nature.
That is, should I expect Sun to put **ONLY** essential, albeit tricky and confusing, questions like:
instead of stupid questions, blatantly aiming to catch your eye vision malfunction, like
??? Please, I like to hear from all your experiences, those who have had the experience of writing the exams...
Originally posted by Eisa Ayed: welcome to javaRanch
actually the exam will test you about the Objectives ,
you need to know all things mentioned in the Objective to pass the exam
i++ +i ,
1- 0+0=0 2- 0++=1
so it will print 1
++i+i // print 2
Thank you Eisa, believe me, i am gonna take your word. I meant, hopefully I dont see an exam that writes System.ou.println on purpose, just to make me fall in a stupid mistake. By the way, the program above prints:
Ma favourite number is 3132
The value of the expression i++ right after the string, is concatenated and then concatenated with i after increment. Tricky, isn't it?