why the constructor should be used in class,if there is no
constructor what will happen?
Answer Posted / yamini
Constructor is used initialize certian paramameters to each
object on their creation.We can also overload
constructors.So we can initialize objects with diff params.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
os is developed in c no java is more secured then c na why dont the os developed is developed using java
Is java pass by value or pass by reference?
Can we have a try block without catch block?
What is the difference between JDK and JVM?
Is there any difference between synchronized methods and synchronized statements?
When is finally block not called?
Is null in java?
Can we convert integer to string in java?
explain autoboxing in java?
What is a cup of java?
Explain listiterator and methods in listiterator?
What is the difference between notify and notifyall method?
Why java is object oriented?
What do you understand by java?
Differentiate between a constructor and a method? Can we mark constructors final?