Differentiate constructor and a method and how are it be
used?
Answer Posted / janet
Constructor will be automatically invoked when an object is
created whereas method has to be called explicitly.
Is This Answer Correct ? | 10 Yes | 1 No |
Post New Answer View All Answers
v-model life cycle
State the main difference between c++ and java?
Why can't we override private static methods?
What do you mean by aggregation?
Why java is a platform independent? Explain
What does function identity () do?
What are the 3 types of control structures?
do I need to use synchronized on setvalue(int)? : Java thread
What is the use of math abs in java?
Difference between Preemptive scheduling vs. Time slicing?
What is the finalize method do?
What is a get method?
What is the default size of arraylist in java?
How many types of gc are there in java?
what is aggregation in java?