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

Which is the best book for whole java study?

12 Answers  


Expain ur organisation process( V-model)?.

1 Answers   Cap Gemini,


What is default constructor in java?

0 Answers  


What is the difference between the boolean & operator and the && operator?

0 Answers  


I am new to jsf rich faces. I am using rich faces datatable rich:datatable. On entering the value, values get filtered in table. Now how can i get the value i selected in backing bean?

1 Answers   Hexaware, IBM,






Can we write lambda without functional interface?

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  


explain isalive() method under thread class?

0 Answers  


What is stateless in java?

0 Answers  


Where are group policies stored? : java security

0 Answers  


What is an action class in java?

0 Answers  


Is jdk required for netbeans?

0 Answers  


Categories