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
When a thread is created and started, what is its initial state?
What is ui framework in java?
What is the difference between ec2 and lambda?
How do I open the java console in windows 10?
What is java language expression?
Name primitive java types.
What is a cookie in java?
What is meant by annotations in java?
What is data encapsulation?
What kind of thread is the garbage collector thread?
What is the purpose of jdk?
What does public static void main(string[]) mean?
What is the difference between lambdas and delegates?
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 the use of flatmap?