Object Oriented Programming through Java - Unit-3
ARun Time
BCompilation Time
CCan Occur Any Time
DNone of the mentioned
Correct Answer
Run Time
Atry
Bfinally
Cthrown
Dcatch
Correct Answer
thrown
Atry
Bfinally
Cthrow
Dcatch
Correct Answer
try
Atry
Bfinally
Cthrow
Dcatch
Correct Answer
catch
Atry
Bfinally
Cthrow
Dcatch
Correct Answer
throw
ARun Time
BCompilation Time
CCan Occur Any Time
DNone of the mentioned
Correct Answer
Run Time
Atry
Bfinally
Cthrown
Dcatch
Correct Answer
thrown
Atry
Bfinally
Cthrow
Dcatch
Correct Answer
try
Atry
Bfinally
Cthrow
Dcatch
Correct Answer
catch
ACatchable
BThrowable
CRunTimeExceptions
DNone of the above
Correct Answer
Throwable
Ajava.file
Bjava.lang
Cjava.io
Djava.util
Correct Answer
java.lang
ANumberFormatException
BNullPointerException
CArithmeticException
DNone of these
Correct Answer
ArithmeticException
AIt's a process in which two different processes run simultaneously
BIt's a process in which two or more parts of same process run simultaneously
CIt's a process in which many different process are able to access same information
DIt's a process in which a single process can access information from many sources
Correct Answer
It's a process in which two or more parts of same process run simultaneously
AProcess based
BThread based
CProcess and Thread based
DNone of the mentioned
Correct Answer
Process and Thread based
AInteger
BFloat
Cdouble
Dlong
Correct Answer
Integer
AAnyone will be executed first lexographically
BBoth of them will be executed simultaneously
CNone of them will be executed
DIt is dependent on the operating system
Correct Answer
It is dependent on the operating system
ABy multithreading CPU idle time is minimized, and we can take maximum use of it
BBy multitasking CPU idle time is minimized, and we can take maximum use of it
CTwo thread in Java can have the same priority
DA thread can exist only in two states, running and blocked
Correct Answer
A thread can exist only in two states, running and blocked
Asynchronize
Bsyn
Csynch
Dsynchronized
Correct Answer
synchronized
Await()
Bnotify()
CnotifyAll()
Dall of the mentioned
Correct Answer
all of the mentioned
Await()
Bnotify()
CnotifyAll()
Dsleep()
Correct Answer
wait()
Awake()
Bnotify()
Cstart()
DnotifyAll()
Correct Answer
notify()
AwakeAll()
Bnotify()
Cstart()
DnotifyAll()
Correct Answer
notifyAll()
AIt's a process of handling situations when two or more threads need access to a shared resource
BIt's a process by which many thread are able to access same shared resource simultaneously
CIt's a process by which a method is able to access many different threads simultaneously
DIt's a method that allow too many threads to access any information the require
Correct Answer
It's a process of handling situations when two or more threads need access to a shared resource
Asynchronize
Bsyn
Csynch
Dsynchronized
Correct Answer
synchronized
Await()
Bnotify()
CnotifyAll()
Dsleep()
Correct Answer
wait()
AUsing the synchronized keyword.
BUsing the volatile keyword.
CUsing the final keyword.
DUsing the static keyword.
Correct Answer
Using the synchronized keyword.
AA lightweight process that executes a sequence of instructions.
BA memory allocation unit in Java.
CA Java keyword to define a loop construct.
DA data structure to store multiple values.
Correct Answer
A lightweight process that executes a sequence of instructions.
AThread
BRunnable
CProcess
DExecutor
Correct Answer
Thread
ATo pause the execution of a thread.
BTo terminate a thread.
CTo notify other threads to resume execution.
DTo release the lock held by the thread.
Correct Answer
To pause the execution of a thread.
Aexecute()
Brun()
Cstart()
Dbegin()
Correct Answer
start()