Multiple choice general knowledge science & technology

What are all the types of methods available in Java??

  1. constructor

  2. destructor

  3. mutators

  4. accessors

  5. behaviour

Reveal answer Fill a bubble to check yourself
A,C,D,E Correct answer
Explanation

This question uses a specific classification system for Java methods. Constructors (A) initialize objects. Accessors/getters (D) retrieve private field values. Mutators/setters (C) modify private field values. Behavior methods (E) perform actions or operations. Option B (destructor) is incorrect because Java doesn't have destructors - it uses garbage collection instead.