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. Static methods can call other static methods.

  2. We can not use super keyword in case of static methods.

  3. We can not override the static method.

  4. All of the above

  5. Only (1) and (3)

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

Yes, all of the above are the true statements.

Multiple choice
  1. A java bean has no argument constructor.

  2. A java bean implements the serializable interface.

  3. setProperty() method is used for the write-only attribute in java bean.

  4. A java bean is like a java class.

  5. None of the above

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

All of the above are the true statements.