What is the difference between constructor and method?
Answer Posted / shadow
Constructor will be automatically invoked when an object is
created whereas method has to be called explicitly. ...!
$HADOW
| Is This Answer Correct ? | 13 Yes | 3 No |
Post New Answer View All Answers
Explain scope or life time of local variables in java?
How we can declare a static variable?
Why array is used in java?
Explain about main() method in java ?
Difference between keyword and identifier.
Can you instantiate the math class in Java?
How does hashset work in java?
How do you create a bulleted list?
What is jit compiler ?
Can we able to pass objects as an arguments in java?
Why heap memory is called heap?
How does the java compiler work?
How does system arraycopy work in java?
What is string example?
What is a memory leak in java?