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 to read and write image from a file ?
What are the types of strings?
Why Java doesn’t support multiple inheritance?
Explain how to force the garbage collection in java.
Is int a class in java?
What are three advantages of using functions?
Which number is denoted by leading 0x or 0x in java?
What are the methods to rectify ambiguities in the interfaces in JAVA?
Is jdk required on each machine to run a java program?
What does g mean in regex?
What do you mean by constructor?
How we create object in copy constructor?
What is a arraylist in java?
what is recursion in java
How to instantiate member inner class?