What is the result of this code executing:

class One {
    public static int j = 90;
    One()
    { j = 12; }
}
public class Test extends One {
    public static void main(String args[]) {
        new Test();
        System.out.println(One.j);
    }
}
Explanation
Get an explanation when it's available:

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
Java quizzes
Cosmo
Sign Up Now
or Subscribe for future quizzes