Interviewer And Interviewee Guide

Sun Certification Interview Question:

Explain 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?
A. any class
B. only the Target class
C. any class in the test package
D. any class that extends Target

Submitted by: Administrator
C:any class in the test package
Submitted by: Administrator

Read Online Sun Certification Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.