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 the advantages of user defined functions?
What things should be kept in mind while creating your own exceptions in java?
Why you should not use singleton?
Can we declare a class as abstract without having any abstract method?
What is a heavyweight component?
Is java same as core java?
What are the different types of methodologies?
How many types of string data types are there?
how to know the total memory occupied by the objects in the ArrayList(Array list may contain duplicate objects)
What is string manipulation?
How many types of literals are there in JAVA?
How to do encapsulation in java?
In a program, initializing an array of 100 KB is throwing an out of memory exception while there is 100 MB of memory available. Why?
What does math floor () do?
What does string mean in java?