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 the method overriding?
How many types of constructors are used in java?
How a string is stored in memory?
What is visibility mode?
Are there structures in java?
What is anagram word?
What is difference between final and immutable?
Can you make a constructor final?
Can we compare two strings in java?
How an object is serialized in java?
How many functional interfaces does java 8 have?
How does remove work in java?
what is synchronization and why is it important? : Java thread
What is the internal implementation of set in java?
Explain about field hiding in java?