Answer Posted / mahesh
constructor is similar to a method.
*constructor name ,class name should be same
*constructor have a parameters
*does not return any value
*
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are packages in java?
Does windows 10 need java?
Is there any case when finally will not be executed?
How does system arraycopy work in java?
What is use of a abstract variable?
Why super is first line in java?
What does it mean that strings are immutable?
Why singleton is not thread safe?
What is thread count in java?
Write a program in java to establish a connection between client and server?
What is queue in java?
Why isn’t there operator overloading?
What is super?
Are arrays classes in java?
What is difference between float and double?