logo

Crowdly

What is the output? public class Outer {     public static void method() {...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

What is the output?

public class Outer {

    public static void method() {

        interface IF {

            void greet();

            System.out.println("Hi");

        }

        class Inner implements IF {

            public void greet() {

                System.out.println("Hello");

            }

        }

        Inner in = new Inner();

        in.greet();

    }

    public static void main(String[] args) {

method();

System.out.println("Bye");

    }

}

/**/

document.oncopy = new Function("return false");

document.onpaste = new Function("return false");

document.onselectstart = new Function("return false");

document.oncontextmenu = new Function("return false"); /**/

0%
0%
100%
0%
More questions like this

Want instant access to all verified answers on lms.upes.ac.in?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!