Which of the following code fragments inserted, will allow to compile?public class Outer { public void someOuterMethod() { //Line 5 } public class Inner { } public static void main(String[] argv) { Outer ot = new Outer(); //Line 10 } } - Study24x7
Social learning Network
study24x7

Default error msg

Login

New to Study24x7 ? Join Now
Already have an account? Login
17 Feb 2023 01:32 PM study24x7 study24x7

Which of the following code fragments inserted, will allow to compile?public See more

A

new Inner(); //At line 5

B

new Inner(); //At line 10

C

new ot.Inner(); //At line 10

D

new Outer.Inner(); //At line 10

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles