Can we extract main method from another class?
No Answer is Posted For this Question
Be the First to Post Answer
What is the java virtual machine (jvm)?
What is jsr in java?
What is a pojo class in java?
What is aop in java?
Is java secure? : java security
What is war file in java?
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?
Is jar an executable?
Describe the principles of oops.
What is java web application?
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.
why i can not access private variable in other class?