What is the difference between method and constructor ?
Answer Posted / sukale shobha balshiram
A Method is set of data that perform specific task. it has
return type.but consturtor does not have return
type.consturtor name smae as class name.
Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
What are the main uses of java?
What is a list in java?
Which is bigger float or double java?
How long will it take to learn java?
Explain covariant method overriding in java.
What is mutable object and immutable object?
What is meant by flickering?
What is the disadvantage of synchronization?
What is the primary benefit of encapsulation?
What is foreach loop in java?
What is the difference between a local variable and an instance variable?
What are the different types of collections in java?
explain copyonwritearraylist and when do we use copyonwritearraylist?
Explain the difference between treeset and treemap in java?
What does the ‘static’ keyword mean? Is it possible to override private or static method in java?