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

How long can a lambda function run?

0 Answers  


How do you count in java?

0 Answers  


What is @override annotation in java?

0 Answers  


What are the risks in java security? : java security

0 Answers  


What is jndi datasource in java?

0 Answers  






What is @resource annotation in java?

0 Answers  


What is a jvm?

0 Answers  


What is crud operations in java?

0 Answers  


What happens if javac is not recognized?

0 Answers  


What is ehcache in java?

0 Answers  


What is jpa used for?

0 Answers  


What is Serialization?

2 Answers   HCL,


Categories