Computer Programming MCQs

5739 MCQs  (Page 460 of 574)

The following program: public class Test{ static boolean is OK; public static void main(String args[]){System.out.print(is OK); } } ?
A. Prints true
B. Prints false
C. Will not compile as boolean is not initialized
D. Will not compile as boolean can never be static
Which of the following statements about arrays is syntactically wrong ?
A. Arrayname[] p = new arrayname[5];
B. Arrayname p[][] = new arrayname[2][];
C. Arrayname[] p [];
D. Arrayname p[5];
The class java.sql.Timestamp is associated with _____________?
A. Java.util.date
B. Java.util.time
C. Java.sql.time
D. None of above
Super is the predefined_______________?
A. Method
B. Keyword
C. Keyword and method
D. None of above
Which metrhods are utilized to control the access to an object in multi threaded programming ?
A. Synchronized methods
B. Asynchronized methods
C. Serialized methods
D. None of above