why the constructor should be used in class,if there is no
constructor what will happen?
Answer Posted / ravikiran
constructor is used to initialize the variables during the
creation of instances.
If there is no constuctor no object will be gets created.
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
What is the byte range?
What is multi-catch block in java?
What is threaded programming and when is it used? : Java thread
What is canonical name in java?
What’s the difference between applets and standalone program?
What is map in java?
What are java packages? What is the significance of packages?
What is hashing in java?
Explain the difference between throw and throws in java?
What are the ways in which a thread can enter the waiting state?
What is the buffer limit?
What is gui programming?
What is a nested list?
Can we declare the main method of our class as private?
Why java is secure? Explain.