Friday, September 4, 2009

SCJP Questions

Exhibit:
1 public class enclosingone (
2 public class insideone{}
3 )
4 public class inertest(
5 public static void main (string[]args)(
6 enclosingone eo= new enclosingone ();
7 //insert code here
8 )
9 )
Which statement at line 7 constructs an instance of the inner class?
A. InsideOnew ei= eo.new InsideOn();
B. Eo.InsideOne ei = eo.new InsideOne();
C. InsideOne ei = EnclosingOne.new InsideOne();
D. EnclosingOne.InsideOne ei = eo.new InsideOne();
Answer: D

0 comments:

Post a Comment

 

About

Site Info

Information Source

Academy of JAVA by Rajesh Rolen Copyright © 2009 Community is Developed by Rajesh Kumar Rolen WebSite

/* tracking code by yahoo login */