Multiple choice softskills creativity

Is it valid?? int _samId=new Integer(12);

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

This statement is valid in Java. The 'new Integer(12)' creates an Integer object through autoboxing, and 'int _samId' unboxes it to a primitive int. The double underscore in '_samId' is a valid variable name in Java. This is syntactically correct and will compile.