Given:
1. package test;
2.
3. class Target {
4. public String name = “hello”;
5. }
What can directly access and change the value of the
variable name?
1 any class
2 only the Target class
3 any class in the test package
4 any class that extends Target
Answer Posted / lakshman
any class that extends Taget
| Is This Answer Correct ? | 6 Yes | 6 No |
Post New Answer View All Answers
Give a brief description of java socket programming?
What is the parse method in java?
Distinguish between a predicate and a function?
How can you read an integer value from the keyword when the application is runtime in java? example?
What is java full form?
What is stream api in java8?
What is application tier?
Explain the difference between treeset and treemap in java?
Write a program to reverse array in place?
What is finally in Java?
How do you decide when to use arraylist and linkedlist?
What is the point of java?
What is final class?
how would you implement a thread pool? : Java thread
What is static synchronization?