gs gs128 Java Classes Methods - Java Methods Taking Parameters - Quiz No.1
gs gs128 Java Quiz
This quiz belongs to book/course code gs gs128 Java of gs organization. We have 136 quizzes available related to the book/course Java. This quiz has a total of 10 multiple choice questions (MCQs) to prepare and belongs to topic Java Classes Methods. NVAEducation wants its users to help them learn in an easy way. For that purpose, you are free to prepare online MCQs and quizzes.
NVAEducation also facilitates users to contribute in online competitions with other students to make a challenging situation to learn in a creative way. You can create one to one, and group competition on an topic of a book/course code. Also on NVAEducation you can get certifications by passing the online quiz test.
Question 1: Which of these is the method which is executed first before execution of any other thing takes place in a program?
main method
finalize method
static method
private method
Question 2: What is the process of defining more than one method in a class differentiated by parameters?
Function overriding
Function overloading
Function doubling
None of the mentioned
Question 3: Which of these can be used to differentiate two or more methods having the same name?
Parameters data type
Number of parameters
Return type of method
All of the mentioned
Question 4: Which of these data type can be used for a method having a return statement in it?
void
int
float
both int and float
Question 5: Which of these statement is incorrect?
Two or more methods with same name can be differentiated on the basis of their parameters data type
Two or more method having same name can be differentiated on basis of number of parameters
Any already defined method in java library can be defined again in the program with different data type of parameters
If a method is returning a value the calling statement must have a variable to store that value