Questions Related to java

Multiple choice java
  1. y string = Java,y string = Java

  2. y string = Javay string = Java

  3. y string = Java, y string = Java

  4. y String = Java, y string = Java

Reveal answer Fill a bubble to check yourself
C Correct answer
Multiple choice java
  1. Prints: t i g

  2. Prints: S r n

  3. Compilation error at lines 1, 2 and 3.

  4. Compilation error at lines 4, 5 and 6.

  5. The code compiles and runs fine.

Reveal answer Fill a bubble to check yourself
B,E Correct answer
Multiple choice programming languages java
  1. name = JAVA

  2. Compiler Error

  3. Exception

  4. name = null

Reveal answer Fill a bubble to check yourself
B Correct answer