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. Get Method is restricted as URLs can only be 1024 characters.

  2. Get method append all the data to the URL.

  3. Post method is used to send files and binary data.

  4. All of the above

  5. Only (1) and (2)

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

All are the true statement.

Multiple choice
  1. In multithreading, synchronized methods or statements used to fix dirty reading.

  2. In Java, all the legacy classes are threadsafe.

  3. Application consumes more time if it uses synchronized blocks.

  4. In Java, we use Synchronized modifier to make a block as thread safe.

  5. None of the above

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

All the 4 options are true.