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 is number data type?
How many bytes is double?
What is the difference between state-based unit testing and interaction-based unit testing?
What are the differences between heap and stack memory?
Will minecraft java be discontinued?
What is an example of a keyword?
What is a top level class in java?
Can you add null to a list java?
How to declare an arraylist in java?
What is lambda expression in java?
What is javac used for?
What is difference between arraylist and list in java?
What is the lifetime and scope of a variable?
What is the meaning of variables in research?
What is the final keyword denotes?