Explain role of constructor in a java application?
Answer Posted / sonal
Without a constructor u cannot make an object or instance
of a class.
Every class must have a constructor. If no constructor is
provided the complier will provide default constructor at
run time.
Is This Answer Correct ? | 33 Yes | 2 No |
Post New Answer View All Answers
What is the difference between static method and instance method in Java?
What are pass by reference and pass by value?
What is the difference between the final method and abstract method?
What is sortedmap interface?
What is a singleton factory?
Explain thread in java?
How are the elements of a gridbaglayout organized?
What are voids?
How do you take thread dump in java?
What is the mapping mechanism used by java to identify IDL language?
Is ++ operator is thread safe in java?
how to split string in java?
How does system arraycopy work in java?
What is map in java?
What is a linkedhashmap java?