Java concepts and its programming MCQs

80 MCQs  — Computer Programming MCQs  (Page 7 of 8)

The JDBC-ODBC bridge is_________________?
A. Singlethreaded
B. Multithreaded
C. Both of above
D. None of above
Thread class is available in________________?
A. Java.lang package
B. Java.util package
C. Java.awt package
D. Java.io package
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