WHICH STATEMENT, INSERTED AT LINE 10, CREATES AN INSTANCE OF BAR

40. which statement, inserted at line 10, creates an instance of Bar?

class Foo

12

{

class Bar{ }

}

class Test

public static void main (String [] args)

{

Foo f = new Foo();

/* Line 10: Missing statement ? */

}

}

A.Foo.Bar b = new Foo.Bar();

B. Foo.Bar b = f.new Bar();

C. Bar b = new f.Bar();

D.Bar b = f.new Bar();