Answer Posted / guest
constructor is special method with the class name and
without any return value.
whenever the object is created the constructor is called
automatically according to the argument passed.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the relationship between class and object?
What is double in java?
When wait(), notify(), notifyall() methods are called does it releases the lock or holds the acquired lock?
What was java originally called?
Can a static class have a constructor?
What does it mean to flush a file?
What are the main uses of this keyword?
Which is bigger float or double java?
What is the difference between scrollbar and scrollpane?
How are observer and observable used in java programming?
Is java code slower than native code?
What is meant by interface?
What is singleton class and how can we make a class singleton?
What is the difference between Error, defect,fault, failure and mistake?
What is the difference between Grid and Gridbaglayout?