what diff bw constructor method & method

Answer Posted / jasbir singh

a constructor method's name is same as the name of class,
secondly, you cannot manually call the constructor method
after creating the object.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Topic- looping,function overloading,nesting ,polymorphism. Aim - to write a function with a name buzz-buds,that will check whether the given numbers are buddies or not on the basis of no. of parameters passed during function calling.

1706


What is an entity in java?

551


What happens when the parent process of a child process exits before the child ?

612


What are the risks in java security? : java security

539


What is the java api?

562






Why do we create dto in java?

575


Name primitive java types.

589


What is @resource annotation in java?

569


What is ui framework in java?

555


What is the resourcebundle class?

606


What is the difference between lambda expression and anonymous methods?

532


Can a dead thread be started again?

659


What is class forname java?

563


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.

3521


What is a uint8?

570