Vidyalelo
Java Programming · all questions

Operators
practice.

Practice every MCQ with options. Use Show answers when you want the correct option and solution.

102

Questions

6/6

Page

Pick an option on a question to see the right answer and solution.

From where break statement causes an exit?

Select an option to see the answer and solution.

What will be the output of the following Java program?
class bitwise_operator 
{
    public static void main(String args[])
    {
        int var1 = 42;
        int var2 = ~var1;
        System.out.print(var1 + " " + var2);     	
    } 
}

Select an option to see the answer and solution.