programming languages Online Quiz - 138
Description: programming languages Online Quiz - 138 | |
Number of Questions: 20 | |
Created by: Aliensbrain Bot | |
Tags: programming languages |
Which three form part of correct array declarations?
Which two allow the class Thing to be instantiated using new Thing()?
Which statements are true?
Which two cause a compiler error?
Given: 1. class A { 2. } 3. class Alpha { 4. private A myA = new A(); 5. 6. void dolt( A a ) { 7. a = null; 8. } 9. void tryIt() { 10. dolt( myA ); 11. } 12. } Which two statements are correct?
Which two are benefits of fully encapsulating a class?
How many ETs are called in a list window normally?
find the output:: public class HelloThread extends Thread { public void run() { System.out.println("Hello from a thread!"); } public static void main(String args[]) { (new HelloThread()).start(); } }
sleep() gives delay in ???
what are the ways to instantiate a therad
what are places where run() is declared.
Thread t = new Thread(r); what is r here
what are the methods to prevent thread execution
what does join() do?
The default priority of thread is ?
what are the true statement about synchronization
what is preemptive multitasking.
class A { A{cout<<"I am a constructor of A";} ~A{cout<<"I am a destructor of A";} } class B { A{cout<<"I am a constructor of B";} ~A{cout<<"I am a destructor of B";} }int main() { A a1; B b1; return 0; }
class A { const int k; public: void fun() { cout<
why constructor are used?