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
What is mime in java?
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.
What is explicit casting?
What is the difference between ec2 and lambda?
Are the actual permissions for the application defined at run-time or compile-time? : java security
What is an api in java?
In system.out.println(), what is system, out and println?
What is jpa entitymanager?
What about products that claim to detect malicious applets? : java security
What are tags in java?
What is stateless in java?
Do I need to install jre if I have jdk?
How many types of jdk are there?
What is dialect in java?
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.