Advertisement
Advertisement
Advertisement

12th Grade Java Quizzes, Questions & Answers

Popular Java Quizzes



Questions: 10  |  Attempts: 14568   |  Last updated: Mar 21, 2025
  • Sample Question
    How will you describe Java?
    Radio Button
    Radio Button
    Radio Button
    Radio Button


Questions: 22  |  Attempts: 12437   |  Last updated: Sep 1, 2025
  • Sample Question
    Which method in the HttpServlet class services the HTTP POST request? (Select one)
    Radio Button
    Radio Button
    Radio Button
    Radio Button


Questions: 100  |  Attempts: 5453   |  Last updated: Sep 18, 2025
  • Sample Question
    What will be the result of compiling the following program? public class MyClass { long var; public void MyClass(long param) { var = param; } // (Line no 1) public static void main(String[] args) { MyClass a, b; a = new MyClass(); // (Line no 2)  } } 1.A compilation error will occur at (Line no 1), since constructors cannot specify a return value 2.A compilation error will occur at (2), since the class does not have a default constructor 3.A compilation error will occur at (Line no 2), since the class does not have a constructor that takes one argument of type int. 4.The program will compile without errors.
    Radio Button
    Radio Button
    Radio Button
    Radio Button


Questions: 15  |  Attempts: 4789   |  Last updated: Jul 3, 2025
  • Sample Question
    All data members in an interface are by default
    Radio Button
    Radio Button
    Radio Button
    Radio Button


Questions: 30  |  Attempts: 4735   |  Last updated: Jan 12, 2025
  • Sample Question
    Choose the operations that can be performed on String objects: (A) + (B) + = (C) - (D) % (E) ^
    Radio Button
    Radio Button
    Radio Button
    Radio Button
    Radio Button


Questions: 25  |  Attempts: 4622   |  Last updated: Sep 22, 2025
  • Sample Question
    Pick runtime exception?....
    Radio Button
    Radio Button
    Radio Button
    Radio Button
    Radio Button

Recent Java Quizzes

Advertisement