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
Describe what happens when an object is created in java ?
Explain importance of inheritance in java?
What is __ init __ functions?
What is data object example?
Why synchronization is important?
What is public static?
Does variable declaration allocate memory?
Define the term string pool?
Realized?
String class is defined under which package in java?
What is meant by tab pans?
Difference between string, stringbuffer and stringbuilder?
What does percent mean in java?
Can an interface be defined inside a class?
Can a static class have a constructor java?