6.
Will this Java program generate same output is executed again?
class Output 
{
    public static void main(String args[]) 
    {
        int y = double z = Math.random();
        System.out.print(y);
    }
}

8.
Which of the following is an incorrect statement about packages?

9.
What will be the output of the following Java program?
class Output
{
    public static void main(String args[])
    {
        String str = "true false true";
        boolean x = Boolean.valueOf(str);
        System.out.print(x);
    }
}

Read More Section(Interfaces and Abstract Classes)

Each Section contains maximum 100 MCQs question on Interfaces and Abstract Classes. To get more questions visit other sections.