Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

Question about the "Nature" of the Exam

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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...
 
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Fernando Espinosa
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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?
 
Arad Chear
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
no no its not tricky ,

i thought you ask about the i+++i how its work ,

yah its another topic when you concatenate the i with String
 
reply
    Bookmark Topic Watch Topic
  • New Topic