Packages Questions And Answers
Here you can find Packages Questions and Answers.
Why Packages Questions and Answers Required?
In this Packages Questions and Answers section you can learn and practice Packages Questions and Answers to improve your skills in order to face technical inerview conducted by organisations. By
Practicing these interview questions, you can easily crack any Exams interview.
Where can I get Packages Questions and Answers?
AllIndiaExams provides you lots Packages Questions and Answers with proper explanation. Fully solved examples with detailed answer description. All students, freshers can download Packages Questions
and Answers as PDF files and eBooks.
How to solve these Packages Questions and Answers?
You no need to worry, we have given lots of Packages Questions and Answers and also we have provided lots of FAQ's to quickly answer the questions in the Competitive Exams interview.
Packages Questions and Answers
1. Which of these keywords is used to define packages in Java?
Packages Questions and Answers
2. Which of these is a mechanism for naming and visibility control of a class and its content?
Packages Questions and Answers
3. Which of this access specifies can be used for a class so that its members can be accessed by a different class in the same package?
Packages Questions and Answers
4. Which of these access specifiers can be used for a class so that it’s members can be accessed by a different class in the different package?
Packages Questions and Answers
5. Which of the following is correct way of importing an entire package ‘pkg’?
Packages Questions & Answers
6. Which of the following is incorrect statement about packages?
Packages Questions & Answers
7. Which of the following package stores all the standard java classes?
Packages Questions & Answers
8. What is the output of this program?
package pkg;
class output {
public static void main(String args[])
{
StringBuffer s1 = new StringBuffer("Hello");
s1.setCharAt(1, x);
System.out.println(s1);
}
}