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
How many bytes is a string java?
What is difference between array and arraylist in java?
what is a green thread? : Java thread
What is the function of java?
Is class forname reflection?
What is flag in python?
What is entry in java?
What is a line break?
Which browsers work with java?
Does set allows null in java?
Can a class have multiple subclasses?
What is the use of arraylist in java?
What is a parameter in java?
Difference between predicate, supplier and consumer ?
What are unchecked exceptions in java?