Questions Related to technology

Multiple choice technology programming languages
  1. The code compiles and produces output: int version.

  2. Line 9 will not compile as there is no version of myMethod which takes a char as argument.

  3. An exception at line 9.

  4. Line 4 will not compile as void methods can't be overridden.

Reveal answer Fill a bubble to check yourself
A Correct answer
Multiple choice technology programming languages
  1. Compile successfully, nothing is printed

  2. Runtime error

  3. Compilation error

  4. Inside throwMethod. followed by caught: java.lang.IllegalAccessExcption: demo

Reveal answer Fill a bubble to check yourself
C Correct answer