File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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

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

Ashish Mittal

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
I agree. Here's the link:
subject: ans to q-30 of Marcus green Mock-1 (SCjp 1.4)
jQuery in Action, 3rd edition