JavaDeploy
SiteMap
Java Certification
Java Beans
Java-OO Concepts
Java Basics
«Prev
Next»
Java Basics
System Object Model
Interfaces Packages
Describe Java Package
Importing Packages
Access Control
Interface Role
Reclaiming Memory
Garbage Collection
Forcing GarbageCollection
Project Access Control
OOA Concepts
Java Exceptions
Exceptions - Quiz
Catching Exceptions-Quiz
Finally-Keyword -Quiz
Throwing Exceptions - Quiz.
Catching Exceptions Baseball
Common Java Exceptions
Java Multitasking
Using Join for Threads
Starting JavaThread - Quiz
Coordinating Java Threads - Quiz
Thread States -Quiz
Intro Java Input/Output
Java Io Package
Java System.in Read Input
Data Input Stream
File Class To Access Files
Save Restore Draw Applet Project
Java Class Input Output Review
Java Stream Programming Conclusion
Java Access Control - Quiz
Each question is worth one point.Select the best answer for each question.
1.
To use a class defined in another package, you must first
Please select the best answer.
A.
Make your class a subclass of that class
B.
Import that class
C.
Implement an Interface
2.
To allow access of a member to a subclass, but restrict access to other classes, use the keyword
Please select the best answer.
A.
private
B.
package
C.
protected
3.
To allow a class in one package to be accessed outside that package, use the keyword
Please select the best answer.
A.
public
B.
class
C.
abstract
Your score is 0.0
Submit
Quiz Explanation