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 ? | 11 Yes | 1 No |
Post New Answer View All Answers
What is indexof in java?
What two classes are used to read data only?
What type of variable is error flag?
Can singleton class be serialized?
Define immutable object?
Is oracle charging for java?
What is native method in java?
Explain static nested classes ?
Can you use abstract and final both with a method?
Which category the java thread do fall in?
What is the difference between yield() and sleep()?
How many JVMs can run on a single machine and what is the Just-In-Time(JIT) compiler?
What is a constructor, constructor overloading in java?
What is object class in java?
Why webdriver is an interface?