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 is an argument java?
What is the difference between compare and compareto in java?
Which are different kinds of source code?
In java, how many ways you can take input from the console?
Can an interface extend another interface?
What do you understand by the bean persistent property?
What are disadvantages of java?
Which collection is ordered in java?
Can constructor be inherited?
What is nested class?
Is java free for businesses?
Which number is denoted by leading 0x or 0x in java?
What is meant by class loader? How many types are there?
What advantage do java's layout managers provide over traditional windowing systems?
Is java hashset ordered?