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 advantages of user defined functions?
Can we override constructor in java?
What do you meant by active and passive objects?
What are structs in java?
What is the order of arraylist in java?
How to check if linked list contains loop in java?
Can we force the garbage collection to run?
What is string array?
What are internal and external variables?
What does it mean that a class or member is final?
Write a java program to generate fibonacci series ?
Explain how to force the garbage collection in java.
Can anonymous class have constructor?
What is a variable in java?
Why webdriver is an interface?