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
What is a local block?
Can we serialize arraylist in java?
Which is the class in java?
What is a class instance variable?
Can I overload to string method
What is the loop in java?
What invokes a thread's run() method in java programming?
What is the difference between the font and fontmetrics classes in java programming?
What is difference between module and function?
What is the difference between throw and throws in java?
How do you override a private method in java?
What is the use of static methods?
What are the application of stack?
What is type safety in java?
What are autoboxing and unboxing? When does it occur?