JavaDeploy
SiteMap
Java Certification
Java Beans
Java-OO Concepts
Java Basics
«Prev
Next»
Java Basics
System Object Model
Access Inheritance
Access Package
Extending Classes
Package Organization
Interface Role
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
Java Input Output
Java IO Package
Data InputStream
JavaClass InputOutput Review
Java IO Quiz
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
Score =
Correct answers:
Quiz Explanation