What is constructor

Answer Posted / giridhar gangapatnam

Constructor is the method which has the same name of class
and constructors are executed only once at the time of
object creation

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which collection is best for sorting in java?

710


Can we declare a class as abstract without having any abstract method?

563


Why wait(),notify(),notifyAll() methods defined in Object class althought we are using in only threads.

2388


What is the syntax and characteristics of a lambda expression?

573


Name and explain the types of ways which are used to pass arguments in any function in java.

582






why would you use a synchronized block vs. Synchronized method? : Java thread

545


What is numeric function?

549


What are the characteristics of Final,Finally and Finalize keywords.

714


What are the important features of Java 9 release?

546


Can we override data members in java?

639


What are keywords and reserved words in java?

566


What are instance variables?

621


What is the difference between a vector & an array list?

689


What is the concatenation operator in java?

585


Is simpledateformat safe to use in the multithreaded program?

549