aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • core java programming
  • The non-static block is called ____________________
Multiple choice

The non-static block is called ____________________

  1. as soon as class gets loaded

  2. by explicitly

  3. when object is created

  4. none of these

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

When we create reference/object of any class, which is accessible, then non static block is called.

Keep practicing — related questions

  • The land tax levied on the French peasantry and non-nobles was called
  • The junction which marks the transition from the simple non-photosensitive area of the retina to the comple...
  • The amount paid to a person for providing voluntary services to a non-profit organisation is called
  • The exchange of chromosomes segments between non-homologous chromosomes is called
  • What will be the output of the program? public class Switch2 { final static short x = 2; public static int ...
  • public class Test2 { public static int x; public static int foo(int y) { return y * 2; } public static void...
  • What will be the output of the program? public class Test { public int aMethod() { static int i = 0; i++; r...
  • What will be the output of the program? public class Test { private static float[] f = new float[2]; public...
Play the full quiz 🎤 Practise this topic out loud

Practice this topic

  • Object-Oriented Programming (2239 questions)
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy