Tag: programming languages
Questions Related to programming languages
-
Thread class
-
Runnable Interface
-
Applet
-
Throwable
-
String
-
Thread object
-
Primitive data type variables
-
object of a class which implements Runnable
-
wait()
-
sleep()
-
stop()
-
start()
-
A thread gets a default priority
-
cause the currently running thread to move back to runnable so that a thread of the same priority can have a chance.
-
Guaranteed to cause the current thread to stop executing for at least the specified sleep duration
-
Guaranteed to cause the current thread to stop executing until the thread it joins with completes
-
A thread can acquire more than one lock
-
Each object has just one lock.
-
all methods in a class must be synchronized
-
methods,variables can be synchronized,
-
Obtain a thread's priority.
-
A thread can voluntarily relinquish control.
-
A thread can be preempted by a higher-priority thread.
-
none of these
-
I am a constructor of A,I am a destructor of A,I am a constructor of B,I am a destructor of B
-
I am a constructor of A,I am a constructor of B,I am a destructor of A,I am a destructor of B
-
I am a constructor of A,I am a constructor of B,I am a destructor of B,I am a destructor of A
-
I am a destructor of B,I am a constructor of A,I am a destructor of A,I am a constructor of B
-
k will display garbage values
-
k will print 0, as default constructor is called.
-
Error as no constructor is defined.
-
Error, as main should precede with int and should return 0.
-
To initialize the data members.
-
To allocate memory for object.
-
To initialize the member functions.
-
To initialize the object.