What is the difference between constructor and method?
Answer Posted / pinky
Constructor doesnt return anything. where as method may or
may not return data or value
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
Explain differences between checked and unchecked exceptions in java?
What is the syntax and characteristics of a lambda expression? Explain
What is nextint java?
Does java isempty check for null?
Why collection doesn’t extend cloneable and serializable interfaces?
Can a list be null in java?
Explain inheritance in java?
Explain restrictions on using enum?
Which collection is thread safe in java?
Why java doesn’t support multiple inheritances?
Difference between keyword and identifier.
Explain the difference between jdk, jre, and jvm?
Why hashset is used in java?
What is unicode in java?
Is map ordered in java?