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 the difference between collection and stream?

0 Answers  


What is meant by rest api in java?

0 Answers  


What is the use of jprofiler?

0 Answers  


what are the different phases in delivering the project during development and maintenance?

0 Answers   CTS,


Explain working of java virtual machine (jvm)?

0 Answers  






Which version of jdk is required for netbeans 8.0 2?

0 Answers  


What are struts java?

0 Answers  


when Can an object reference be cast to an interface reference?

1 Answers  


How do I enable java in firefox?

0 Answers  


suppose we have one String s="india is my country"; now we get the o/p "like country my is India". what is the logic?

2 Answers  


Why is javac not recognized?

0 Answers  


What are anonymous methods and lambda expression?

0 Answers  


Categories