P Pooja • 4.41K Points Extraordinary Bookmark Embed Report View In MB-Short Q. 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 Correct Answer - Option(A) Views: 41 Filed under category JAVA Share
Discusssion
Login to discuss.