JavaDeploy
SiteMap
Readers Writers
Java Streams
Java Programming
Java Language
Packages and Interfaces
«Prev
Next»
Java Language
Packages Interfaces
Java Classes - Quiz
Java Graphics
Java Graphics - Quiz
Java Graphics Conclusion
122
MultiThreaded Programming
Multithreaded Programming Basics
Thread Significance Assessment
Create Use Thread Class
Implement Runnable Interface
Sleeping Threads
Thread Synchronization
wait notify Methods
Multithreaded Programming - Conclusion
Set Daemon Threads
Multithreaded Programming - Quiz
Multithreading Fundamentals - Quiz
Handling Exceptions
Understanding Exceptions
Throwing Exception
Catching Exceptions
Catching Exceptions
Custom Exceptions
finally Clause
Handling Exceptions Conclusion
Java Input Output
Create Reader Streams
122
Java Packages and Interfaces - Quiz
Each question is worth one point. Select the best answer for each question.
1.
How do you import all of the classes in a package with a single statement?
Please select the best answer.
A.
Provide the package name and the
*
wildcard.
B.
Provide only the package name
C.
Provide the name of any class in the package
2.
Which one of the following access modifiers indicates that classes, member variables, and methods are freely accessible?
Please select the best answer.
A.
private
B.
protected
C.
public
3.
What is the accessibility of a class modifier if you don't explicitly declare an access modifier?
Please select the best answer.
A.
The
public
access modifier is assumed
B.
The default access modifier is implicitly used
C.
The access is undefined
4.
When a class implements an interface, it is required to provide:
Please select the best answer.
A.
An implementation of each method declared in the interface
B.
An implementation of at least one method declared in the interface
C.
A default constructor
Your score is 0.0
Submit
Quiz Explanation