aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Java Programming Fundamentals
  • what is difference between static block and static method
Multiple choice technology programming languages

what is difference between static block and static method

  1. same thing no difference

  2. static block for particular object lock and static method locks all the object

  3. java doesnt have static block only static method it have

  4. none of these

Reveal answer Fill a bubble to check yourself
B Correct answer

Keep practicing — related questions

  • Which of the following is a true statement in java?
  • class Abc { static { System.out.print("Static block "); display(); } public void display() { System.out.pri...
  • Which of the following can be marked Static ? (A)Initialization blocks (B)A class nested within another cla...
  • Which of the following statements is/are correct for static method in Java? A. Static methods are always pu...
  • Which of the following is/are correct about Static method ?
  • The static block even exectuted without main method in application program.
  • Which of the following is/are the true statement(s) in java?
  • Which statement is true?
Play the full quiz 🎤 Practise this topic out loud

Practice this topic

  • Java Core Classes and Threads (1473 questions)
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy