Answer Posted / sankar r k
The function of the constructor is to assign values to the
instance variable when the object is created for the first
time.The name of the constructor and the class name will be
same.
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
What do you mean by platform independence? What is an interface?
what is the purpose of using rmisecuritymanager in rmi?
Can a private method of a superclass be declared within a subclass?
How is a variable stored in memory?
What is the difference between menuitem and checkboxmenu item?
Can we declare the main method of our class as private?
What is the purpose of declaring a variable as final?
What does replaceall do in java?
How to instantiate static nested classes in java?
How do you compare values in java?
What is difference between overloading and overriding in java?
How many types of assembly languages are there?
Is string is a class in java?
Is constructor inherited?
what is server side caching?