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

Does netbeans need jdk?

0 Answers  


In hibernate what is the difference between the Session and SessionFactory?

0 Answers   Cap Gemini,


When a thread is created and started, what is its initial state?

0 Answers  


What is a delimiter in java?

0 Answers  


What is resultsetmetadata in java?

0 Answers  






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

0 Answers   CTS,


Why sun introduce concept of anonymous class? What is need and real life use of anonymous class

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  


In java thread programming, which method is a must implementation for all threads?

0 Answers  


Do I need to install jre if I have jdk?

0 Answers  


Why do we create dto in java?

0 Answers  


What are tlds in java?

0 Answers  


Categories