why the constructor should be used in class,if there is no
constructor what will happen?
Answer Posted / devarathnam c,kotagudibanda(po
Hi... Nothing will happen the compilet will supply the
default constructor of the class.Normally canostructor can
be used to instantiate an object.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is flush () in java?
What is the output of the below java program?
What does those terms actually mean included in the j.d.k i.6?
Given a singly linked list, determine whether it contains a loop or not without using temporary space?
Do I need to import java.lang package any time? Why?
What is an immutable object?
Explain the difference between a Thread and a Process.
What is the different types of functions?
Differences between C and Java?
How can I debug the Java security exceptions and AccessControlExceptions?
If you are given the name of the function at run time how will you invoke the function?
What is difference between static class and normal class?
Can a class be declared as protected?
What is the importance of hashcode() and equals() methods?
How does enum work in java?