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
Which is easier netbeans or eclipse?
What is the difference between private & public & friendly classes?
What is the abstraction?
What are java threads?
Is array primitive data type in java?
How does split work in java?
Explain super keyword in java.
What are streams?
What is main difference between variable and constant?
Can a class extends itself in java?
Is null keyword in java?
What are different types of inner classes ?
What is getclass () getname () in java?
What is Garbage Collection in Java
Describe method overriding