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 java oops?
Is alive method in java?
How to create a thread in java?
What are the advantages and disadvantages of object cloning?
What is meant by call by reference?
What is super?
What are keywords and reserved words in java?
Is hashmap thread safe?
What an i/o filter in java programming?
What is difference between word and integer?
Which is the best sorting technique in java?
What is the benefit of using enum to declare a constant?
What are the different types of garbage collectors in java?
What is class and object in java?
What is a buffer in java?