You cannot declare a local variable in a method that has same name as an instance variable in the class.
Anonymous Quiz
55%
True
45%
False
👍2
#calss
Which of the following is not OOPS concept in Java?
Which of the following is not OOPS concept in Java?
Anonymous Quiz
59%
Compilation
14%
Polymorphism
11%
Inheritance
16%
Encapsulation
#class
Which of the following is a type of polymorphism in Java?
Which of the following is a type of polymorphism in Java?
Anonymous Quiz
22%
Multilevel polymorphism
30%
Multiple polymorphism
18%
Execution time polymorphism
30%
Compile time polymorphism
#class
When does method overloading is determined?
When does method overloading is determined?
Anonymous Quiz
20%
At execution time
32%
At compile time
32%
At run time
17%
At coding time
#loop
The while loop repeats a set of code while the condition is not met?
The while loop repeats a set of code while the condition is not met?
Anonymous Quiz
51%
True
49%
False
#Methods
What is the process of defining more than one method in a class differentiated by method signature?
What is the process of defining more than one method in a class differentiated by method signature?
Anonymous Quiz
21%
Function doubling
48%
Function overloading
20%
Function overriding
11%
None of the mentioned
👍1
What is the return type of a method that does not return any value?
Anonymous Quiz
12%
int
76%
void
7%
double
5%
float
Which of the following is a type of polymorphism in Java ?
Anonymous Quiz
37%
Compile time polymorphism
15%
Execution time polymorphism
35%
Multiple polymorphism
12%
Multilevel polymorphism
Which concept of Java is a way of converting real world objects in terms of class ?
Anonymous Quiz
34%
Inheritance
34%
Abstraction
19%
Polymorphism
12%
Encapsulation
Which concept of Java is achieved by combining methods and attribute into a class ?
Anonymous Quiz
18%
Abstraction
35%
Encapsulation
33%
Inheritance
14%
Polymorphism
What is it called if an object has its own lifecycle and there is no owner ?
Anonymous Quiz
31%
Association
23%
Encapsulation
29%
Aggregation
17%
Composition
