Answer Posted / guest
constructor is special method with the class name and
without any return value.
whenever the object is created the constructor is called
automatically according to the argument passed.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the use of keywords in java?
Explain about anonymous inner classes in java?
Can memory leak in java?
Which method you will use to create a new file to store some log data. Each time a new log entry is necessary, write string to the file in java ?
Print Vertical traversal of a Binary Tree.
What methods are used to get and set the text label displayed by a button object?
What are the problems faced by java programmers who don't use layout managers?
What is a finally block?
What are operators and its types?
Why heap memory is called heap?
How many static init can you have?
Differentiate between nested and inner class in java.
What is run time allocation?
What is primitive data type in java?
What is the purpose of the enableevents() method?