What is the difference between a method declaration and a method definition in Java?
A. Declaration specifies method name, return type, and parameters; definition provides the implementation
B. Declaration is used for constructors, and definition is used for regular methods
C. Declaration is optional, and definition is mandatory
D. Declaration and definition are the same in Java
Answer: Option A

Join The Discussion