Computer Knowledge

Java Core Classes and Threads

1,935 Questions

Java core classes and threads form the foundation of object oriented programming and are crucial for IT officer and programming exams. This includes concepts like string mutability, collections, and multithreading. Solve these questions to test your practical coding and theoretical knowledge.

String and StringBuffer classesThread execution methodsJava collections frameworkCharacter streams input outputVariable serialization rules

Java Core Classes and Threads Questions

Multiple choice
  1. This method is used to unbind any object associated with the current session.

  2. This method is used to remove the object, binds with the specified name.

  3. This method is used to bind an object to the session with the specified name.

  4. This method is used to create a new session.

  5. None of the above

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

Yes, this is true about invalidate() method in JSP.

Multiple choice
  1. This exception is thrown when a program tries to reference, on a class or object, a field that does not exist.

  2. This exception is thrown when a program tries to reference, on a class or object, a method that does not exist.

  3. This exception is thrown when a program attempts to access a field or method which is not accessible from the location where the reference is made.

  4. This exception is thrown when an invalid value is passed to a string-to-number conversion method.

  5. None of the above

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

This is known as NoSuchFieldException.