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. toLower()

  2. trim()

  3. split()

  4. Both 1 and 3

  5. Both 2 and 3

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

This is the correct answer. Because there is no method defined in the String class named toLower(). So it cannot be invoked using the object of String class.The correct method is toLowerCase() which converts the characters to lowercase. So this is the correct answer.