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
Is alive and join method in java?
what is server side caching?
What is hashing in java?
Where is java located?
What are three types of loops in java?
How do you allocate memory to object?
What is difference between equals and hashcode method?
Explain what is Marker interface?
Explain the difference between arraylist and linkedlist in java?
Define canvas?
What is the difference between final, finally and finalize() in java?
How many types of classes are there in java?
How does the java compiler work?
Can a class be private or protected in java?
Why bytecode is called bytecode?