CodePhataa
Home
GoAlgo
Revision Hub
Learning Path
Challenge
Compiler
More
Toggle theme
Open menu
User Defined Methods | Java Flashcards | CodePhataa | CodePhataa
User Defined Methods
Decks
User Defined Methods
01
/
40
Basics
Question
What is a method prototype / header?
Tap to reveal
Answer
The first line callers read: modifiers, return type, name, parameters, optional throws.
Example:
public static int sum(int a, int b)