Explain, why the constructor is required in implemented
class?
Answer Posted / sekhar
Constructor is like a method.It can be invoked as soon as
we create an object for the class.We can overload
constructor.to call them we need pass parameters in main
method.
| Is This Answer Correct ? | 3 Yes | 3 No |
Post New Answer View All Answers
What is the static keyword?
What is a text string?
Can classes declared using the abstract keyword cab be instantiated?
List some oops concepts in java?
What is jpa specification?
When is the arraystoreexception thrown?
What do you mean by append?
What is cr keyboard?
How do you sort an array in java?
What is the benefit of singleton pattern?
What is a Null object?
1.IN CASE OF DYNAMIC METHOD DISPATCH WHY WE USE REFERENCE VARIABLE,WE CAN USE THE DIFFERENT DEFINED OBJECT DIRECTLY TO ACCESS THE DATA MEMBER AND MEMBER FUNCTION OF THAT RESPECTIVE CLASS?WHAT IS THE MAIN FUNCTION OF "REFERENCE VARIABLE" HERE?
What are different types of references?
How does thread synchronization occurs inside a monitor?
Give me an example of array and linked list? Where they can be used?