Answer Posted / subrat
This is what differenciates constructor from a method. If
constructor have a return type then the JVM will not treat
constructor as constructor but as method.
Is This Answer Correct ? | 5 Yes | 4 No |
Post New Answer View All Answers
What are the parts of a method?
What is difference between final and immutable?
What does += mean coding?
What is an example of a conditional statement?
What are the advantages of arraylist over arrays?
What is difference between next () and nextline () in java?
How can a gui component handle its own events?
Which api is provided by java for operations on set of objects?
How do I run java on windows?
Detail discussions on JVM, memory management and garbage collector.
What does arrays sort do in java?
What do you mean by Hash Map and Hash Table?
Why do we create threads in java?
what is synchronization? : Java thread
What is the difference between a choice and a list?