Computer Programming MCQs

5739 MCQs  (Page 457 of 574)

Suspend thread can be revived by using ?
A. Yield() method
B. Suspend() method
C. Start() method
D. Resume() method
Which driver is called as thin-driver in JDBC ?
A. Type-1 driver
B. Type-2 driver
C. Type-3 driver
D. Type-4 driver
Executable applet is_________________?
A. .class file
B. .java file
C. .java html
D. .applet file
String is the predefined ?
A. Object
B. Variable
C. Class
D. Method
The following fraction of code double STATIC = 2.5 ; System.out.println( STATIC ); ?
A. Prints 2.5
B. Raises an exception
C. Raises an error as static is used as a variable which is a keyword
D. None of these
Which statements are most accurate regarding the following classes? class A{private int i; protected int j; } class B extends A{ private int k; protected int m; } ?
A. An object of b contains data fields j, k, m
B. An object of b contains data fields k, m
C. An object of b contains data fields j, m
D. An object of b contains data fields i, j, k, m