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 ? | 11 Yes | 1 No |
Post New Answer View All Answers
What is lexicographically smallest string?
What is difference between call by value and call by reference?
What is the difference between C++ and Java and your preferences?
please send me hr interview questions in it industry
Can private class be inherited in java?
What is the purpose of abstract class?
Is string a class in java?
What is unicode used for?
Explain covariant method overriding in java.
What does localhost mean?
List some features of the abstract class.
Can a class have a static inner class?
Why should I use abstract class?
What methods are used in Servlet?Applet communication?
What are the data types supported by java?