Differentiate constructor and a method and how are it be
used?
Answer Posted / arunji,shc
constructor it should be same name of class but method name
is userdefined.
when the object created constructor call automatically but
method through the object have to call.
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are the 3 types of loops in java?
What are keywords give examples?
What is the symbol for line break?
Can you use this() and super() both in a constructor?
What are namespaces in java?
What is the meaning of variable in research?
What is keyword and identifier?
What is the use of arrays tostring () in java?
What is difference between checked and unchecked exception in java?
can used Protected Class outside Function.?
What does index mean in java?
Where are variables stored?
What is a java string?
Which of the classes will have more memory allocated?
What is string and its types?