what is constructer?what are the type of constructer with
example.

Answer Posted / kool

A constructer has same name as class .it does not have any
data type in a program we can only have one constructer
with a class name because they can be overloaded.if we dont
create one the programe creates one for us.

public class kool{

/** constructer

public kool(){
*/
}
}

Is This Answer Correct ?    5 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is java singleton thread safe?

478


how can we create the ui using netbeans,having the code?

1629


What is a java proxy?

505


there are 67 seats in train . there are only 5 seats in a row and in last row there are only 2 seats. One person can reseve only 5 seat at a time. If person reserving seat , the care is atken that he may get all in row. if seats are not available in row then the arrangement is so that person group get nearby seats. the following class is given public class seat { char name; int seat; boolean isSeatempty } 1.Draw require class digram and object diagram. 2.Write function seatallot(int noofperson) to allocate seat with seat nuber printed for the each name.

2645


What is map and flatmap?

615






What is the use of jprofiler?

485


What is dialect in java?

463


How do I run a project in eclipse?

447


Is it correct to say that using parentheses can only change?

483


What is adoptopenjdk?

523


What is orm in java?

506


What does el mean in java?

525


What is the front end for java?

490


Do I need both jdk and jre?

490


What is crud operations in java?

470