what are the types of constructer explain with example

Answer Posted / kailash

there are two types of Constructors .
1. Parameterized Constructor inwhich we give arguments .
2. Default constructor , there no argument is given .
for each class there must be a defult constructor .

Is This Answer Correct ?    14 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is transient in java?

661


what is reflection api? How are they implemented?

736


What is cookie in java?

652


What are jdk tools?

659


What is dto in java?

694


Why is struts used in java?

648


What do I need to install netbeans?

714


Why we use beans in java?

699


What is profile in java?

621


can anyone tell me what kind of questions are asked for core java exam in aptech

1617


What is class forname java?

657


When a thread is created and started, what is its initial state?

725


What is cloning in java?

683


What is the most important feature of java?

647


How do I run a project in netbeans?

663