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 differences between Java 1.0 and Java 2.0?
How do you define a method?
What is map and hashmap in java?
What is procedure writing?
Explain reverse a linked list recursive java solution?
How is it possible in java programming for two string objects with identical values not to be equal under the == operator?
What is the += operator called?
What are assembly attributes?
Is space a char?
How do you sort in descending order in java using collections sort?
Implement two stacks using a single array.
What is bytecode verifier?
What is the difference between yielding and sleeping?
How do you reverse a string in java?
What is a parameter example?