Podcast
Questions and Answers
Flashcards
What is the run()
method?
What is the run()
method?
The run()
method serves as the core execution point within a thread.
What is setPriority()
?
What is setPriority()
?
setPriority()
method is used to assign priority to a thread.
Thread blocking methods?
Thread blocking methods?
sleep()
, wait()
, and suspend()
methods can cause a thread to block.
Thread states
Thread states
Signup and view all the flashcards
Study Notes
Unit 4
- A class can
extend
another class while implementing interfaces. - The
dot
operator is for accessing the class that resides in a Java package. Public
approach would be used to declare variables in an interface.- An interface is basically a kind of
class
. Interfaces
approach is used to achieve multiple inheritance in Java.- The Java package used for creating and implementing applets is
java.applet
. Final fields and abstract methods
elements can be defined by a Java interface.- The Java compiler uses the
java.lang
package. - Use an
import
statement to include an external package in a Java program. package packagename
is the general format for creating the package.
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.