Multiple choice softskills creativity

Output when the object of NowS is created ??? import java.util.*; class Sam { private int no; Sam() {no=0;} Sam(int n) {no=n;} } class NowS extends Sam{ private int x; NowString() { x=12; Super.Sam(12); System.out.println(x); } }

  1. 12

  2. nothing

  3. compilation error

  4. 0

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

The code contains several errors: 'NowString()' is a constructor name that doesn't match the class 'NowS', and 'Super.Sam(12)' is invalid syntax for calling a superclass constructor (it should be 'super(12)'). These issues cause a compilation error.