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 are the differences between include directive and include action?
Can private method static?
Difference between operator overloading and function overloading
extending thread class or implementing runnable interface. Which is better? : Java thread
What's the access scope of protected access specifier?
Can we use different return types for methods when overridden?
Is heap stored in ram?
When a lot of changes are required in data, which one should be a preference to be used? String or stringbuffer?
how to deploy tomcatserver to weblogic server? write d following steps?
What is e java?
What are the two environment variables that must be set in order to run any java programs?
What programs use java?
What is the difference between import java.util.date and java .util?
What type of language is java?
How many bits is a string?