Is it possible to create object with out its default
constructor? if possible how? else not possible? justify

Answer Posted / vamsi

Yes, it is possible to create an object without its default
constructor. We can create a parametrized constructor or if
you have not created any thing then the compiler will
provide you with one default constructor.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can inner class extend any class?

802


What is the default size of load factor in hashing based collection?

788


What is scanner in java?

719


How to calculate the length of a singly linked list in java?

758


Is java jre still free?

705


Hi.... I applied for the post of scientific officer/Engineer-SB(Programmer).Please post the syllabus and sample papers.

1729


What is the purpose of garbage collection in java? When is it used?

776


Is ruby built on java?

703


What is the use of coding?

711


What is flag in java?

719


What is identifier in java?

757


Can a constructor be protected?

764


Can we use synchronized block for primitives?

801


what is the use of pojo (plain old java objects)? how it is interact with crystal reports? pls urgent

1923


Why are the destructors for base class and derived class called in reverse order when the program exits

1920