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

What is mime in java?

488


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.

3437


What is explicit casting?

542


What is the difference between ec2 and lambda?

474


Are the actual permissions for the application defined at run-time or compile-time? : java security

538






What is an api in java?

480


In system.out.println(), what is system, out and println?

625


What is jpa entitymanager?

446


What about products that claim to detect malicious applets? : java security

461


What are tags in java?

478


What is stateless in java?

489


Do I need to install jre if I have jdk?

466


How many types of jdk are there?

475


What is dialect in java?

449


Write a class which checks whether a given number is prime or not. Write another class to implement the behavior of previous class and print the series of twin prime number upto a given range.

1352