#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
What is it called where child object gets killed if parent object is killed ?
Anonymous Quiz
26%
Association
21%
Encapsulation
31%
Composition
22%
Aggregation
تم إضافة حساب للقناة على Instagram من يحب الإنضمام
https://instagram.com/learn_java_e
https://instagram.com/learn_java_e
What is true about private constructor ?
Anonymous Quiz
36%
Private constructor ensures only one instance of a class exist at any point of time
23%
Private constructor ensures multiple instances of a class exist at any point of time
24%
Private constructor eases the instantiation of a class
17%
Private constructor allows creating objects in other classes
What would be the behaviour if this() and super() used in a method
Anonymous Quiz
42%
Runs successfully
32%
compile time error
12%
Runtime error
14%
Throws exception
What is true about constructor
Anonymous Quiz
21%
Constructor cannot throw an exception
24%
It can contain return type
21%
It can have any non access modifiers
34%
It can take any number of parameters
What is true about protected constructor
Anonymous Quiz
34%
protected constructor can be instantiated even if child is in a different package
19%
Protected constructor can be used outside package
28%
Protected constructor can only be called using super()
18%
Protected constructor can be called directly