Meaningless Drivel is fun!*
The moose likes Struts and the fly likes ans to q-30 of Marcus green Mock-1 (SCjp 1.4) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "ans to q-30 of Marcus green Mock-1 (SCjp 1.4)" Watch "ans to q-30 of Marcus green Mock-1 (SCjp 1.4)" New topic
Author

ans to q-30 of Marcus green Mock-1 (SCjp 1.4)

Ashish Mittal
Greenhorn

Joined: Aug 18, 2004
Posts: 4
I just gave mock test-1 for SCJP1.4 and scored 90% .


But the ans to Qno-31 seems to b incorrect


Question 30)

public class MyClass1 {public static void main(String argv[]){ }/*Modifier at XX */ class MyInner {}}
What modifiers would be legal at XX in the above code?

1) public
2) private
3) static
4) friend

ans given by u --- public,private,static ;

But i feel only static is applicable (as this is an inner(Local) class in static context to which no accessibility modifiers are applicable ....Refrence table 7.1 page 286 from Mughal ramussen 2 edition ).

Otherwise i enjoyd giving the test ....
Ko Ko Naing
Ranch Hand

Joined: Jun 08, 2002
Posts: 3178
Ashadonis, I think you posted the right question in the wrong place... Here is SCJP forum out there, where you can find many SCJP aspirants...

Just my 2 cents...


Co-author of SCMAD Exam Guide, Author of JMADPlus
SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0
 
Consider Paul's rocket mass heater.
 
subject: ans to q-30 of Marcus green Mock-1 (SCjp 1.4)