Cracking the Java Coding Interview pdfdrive com


the language. For the most part it’s broken into two pieces: the user


Download 1.48 Mb.
Pdf ko'rish
bet58/182
Sana02.05.2023
Hajmi1.48 Mb.
#1423275
1   ...   54   55   56   57   58   59   60   61   ...   182
Bog'liq
Cracking the Java Coding Interview ( PDFDrive )

the language. For the most part it’s broken into two pieces: the user
adjustable security manager that checks various API operations like file
access, and the byte code verifier that asserts the validity of compiled byte
code. public abstract class SecurityManager java.lang.SecurityManager is
an abstract class which different applications subclass to implement a
particular security policy. It allows an application to determine whether or
not a particular operation will generate a security exception.
What is daemon thread and which method is used to create the daemon
thread?
Daemon thread is a low priority thread which runs intermittently in the
back ground doing the garbage collection operation for the java runtime
system. setDaemon method is used to create a daemon thread.
What are Transient and Volatile Modifiers?
Transient: The transient modifier applies to variables only and it is not
stored as part of its object’s Persistent state. Transient variables are not
serialized.
Volatile: Volatile modifier applies to variables only and it tells the compiler
that the variable modified by volatile can be changed unexpectedly by other
parts of the program.
What is preemptive and Non-preemptive Time Scheduling?
Preemptive: Running tasks are given small portions of time to execute by
using time-slicing. Non-Preemptive: One task doesn’t give another task a
chance to run until its finished or has normally yielded its time.
What is runnable?
Its an Interface through which Java implements Threads.The class can
extend from any class but if it implements Runnable,Threads can be used in
that particular application. What is the difference between set and list?
Set stores elements in an unordered way but does not contain duplicate

Download 1.48 Mb.

Do'stlaringiz bilan baham:
1   ...   54   55   56   57   58   59   60   61   ...   182




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling