why i can not access private variable in other class?
Answer Posted / maggie
it cant access.because its life time only within the class
or loop.it expires when it comes out from the class or loop.
| Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
What does persist mean in java?
How do I start netbeans?
What is cmp in java?
What are anonymous methods and lambda expression?
How do I run a project in netbeans?
What is dto in java?
What is gui in java with examples?
Are streams faster than for loops?
Spring framework ---Can somebody explain me in easily understandable format about AOP, IOC and DI, so that i can explain in interview rather than just telling what is available in net. I am not able to understand that also. I am new to Spring
What is entitymanager in jpa?
How do you check if java is installed on windows command prompt?
Explain daemon thread.
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.
What is a delimiter in java?
What is java lang?