PART 1: MULTIPLE CHOICE QUESTIONS.
EXERCISES
1. What is the return type of a method that does not return a value?
A. double
B. int
C. float
D. void
2. What is the process of defining more than one method in a class differentiated by
method signature?
A. Method Overloading B. Method Overriding
C. Defining Method
D. Calling Method
3. Which method can be defined only once in a program?
A Static Method
B. Main Method
C. Private Method
D. Protected Method
co
4. Consider the two methods (within the same class)
public static int foo(int a, String s)
89
Answers
Answered by
2
Answer:
1-a
Explanation:
okk
1 - a
2-b
3-c
4- don't know sorry 4 ans
but like and follow plz
Similar questions