The action in Java class are called:
2026
The action in Java class are called:
- A.
methods
- B.
objects
- C.
functions
- D.
procedures
Attempted by 84 students.
Show answer & explanation
Correct answer: A
In Java, actions or behaviors defined within a class are referred to as methods. While similar concepts exist in other languages (like functions), Java specifically uses the term 'method' for class actions. Therefore, option 1 is correct.