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 is the symbol for line break?
Difference difference paint() and paintcomponent()?
Give an example of call be reference significance.
What are the differences between getting and load method?
What is difference between string and new string?
What is a ternary operator in java?
Can an integer be null java?
What is use of arraylist in java?
Differentiate jar and war files?
Implement 2 stacks with just 1 array. The stack routines must not indicate overflow unless every slot in array is used.
How to do encapsulation in java?
What is difference between equal and == in java?
What is a superclass?
How do you convert bytes to character in java?
How java is similar to c?