Tag: programming languages

Questions Related to programming languages

What is the output of the following code when compiled and run? Select one correct answer. public class Question41{ public static void main(String[] args){ Object[] obj = new Object[3]; for(int i=0;i

  1. Compilation error.

  2. Prints: 1 3 4 true false true

  3. Prints: 1 2 4 false false true

  4. Prints: 3 4 true true true

  5. None of the above.


Correct Option: C