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.


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Java Related AllOther Interview Questions

What is tier in java?

0 Answers  


What is the difference between map and flatmap in java?

0 Answers  


I have deployed a .war file in my application server comprising of struts and hibernate.If i want to change the "dialect" property of hibernate cfg file how can i change(I have only .war file)... Thanks in advance

0 Answers  


What is a static method?

0 Answers  


What is dto layer in java?

0 Answers  






What about products that claim to block java applets at a firewall? : java security

0 Answers  


Can we extract main method from another class?

0 Answers  


What is meant by annotation in java?

0 Answers  


What are struts java?

0 Answers  


What is the difference between lambdas and delegates?

0 Answers  


i have make jar file but when i click in this file then arr swhow "no faund main class" plese help me in this problem becose i want to make a jar file as a dxdcutable file

1 Answers  


What type of parameter passing does java support?

0 Answers  


Categories