Podcast
Questions and Answers
Which part of the method declaration is included in the method signature?
Which part of the method declaration is included in the method signature?
- Method name and exception list
- Method name and access specifier
- Method name and parameter list (correct)
- Method name and return type
What does the access specifier determine?
What does the access specifier determine?
- The return type of the method
- The visibility of the method (correct)
- The exception thrown by the method
- The number of parameters in the method
Which access specifier allows a method to be accessible within the same package or subclasses in a different package?
Which access specifier allows a method to be accessible within the same package or subclasses in a different package?
- Private
- Public
- Default
- Protected (correct)