Home / MCQ Bank / Computer
Computer Flow Control Difficulty: Medium

What is the purpose of the "if" statement in Java?

Select the correct option to test your answer:

More Computer Questions

What will be the result if NullPointerException occurs at line 2? try{ //some code goes here } catch(NullPointerException ne){ System.out.print("1 "); } catch(RuntimeException re){ System.out.print("2 "); } finally{ System.out.print("3"); } What will be the output of the following PHP code ? <?php $i = 0 ;$j = 1 ;$k = 2 ; print !(( + + $i + $j ) > ( $j - $k )) ; ?> Which of the following JavaScript logging tool is also a debugging tool? Which algorithm supports blobs? What is the output of the following code: char str[10]; cout << sizeof(str); in C++?