Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Private modifier ...

 
Kareem Qureshi
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
again from certification4careers
17)
The private modifier can be applied to ...
a.A variable
b.A method
c.A class
d.All of the above
i answered d but answer is a,b.
private modifier can be applied to inner class, am i right?
my question is can we expect such kind of questions in SCJP exam
Thanks in advance
Kareem
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can expect much better worded questions. That one sucks. It does not really specify which kind of class. And you are right a private modifier can be put in the declaration of inner classes.
Forget about certification4careers, there are better mocks out there than ones that only lower your confidence and make you loose your precious time.
 
Kareem Qureshi
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Valentin
I am scheduled to take the exam on monday and i want to miss any exams available on net so that i dont miss anything. also i have reserved ur mock till tonight.
Please advice so that i get max in actual exam
Kareem
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just be yourself, get some sleep and down
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic