Answer Posted / venkatesh
Constructor donot return any data.it is mainly used for
initialization i.e one time activity like database
connectiviy, constructors are automatically invoked when
created objects created.
Is This Answer Correct ? | 32 Yes | 2 No |
Post New Answer View All Answers
What is boolean flag in java?
What is diamond operator in java?
What is the purpose of object oriented programming?
What methods are used in Servlet?Applet communication?
Which object oriented concept is achieved by using overloading and overriding?
Which containers use a flowlayout as their default layout in java programming?
Is there any difference between synchronized methods and synchronized statements?
What is final variable?
What are the high-level thread states in java programming?
What is the use of optional ?
Explain about member inner classes?
Explain the scope of a variable.
Why are lists ordered in java?
What is garbage collection? What is the process that is responsible for doing that in java?
How do you initialize an arraylist in java?