Search
.Management Sciences
Category: Java concepts and its programming
Which of the following below are valid isolation levels in J2EE ?
A. TRANSACTION_READ_UNCOMMITTED
B. TRANSACTION_SERIALIZABLE
C. Only A
D. Both A and B
The smallest integer type is _____________ and its size is____________ bits?
A. short, 8
B. byte, 8
C. short, 16
D. short, 16
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 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
Which of the following automatic type conversion will be possible ?
A. byte to int
B. short to int
C. long to int
D. int to long
All collection classes are available in _________________?
A. java.util package
B. java.io package
C. java.lang package
D. java.awt package
Methods that have same name, but different Parameter list and different definition known as_________________?
A. Overriding
B. Overloading
C. Constructor
D. none of these
Choose the correct statement : Restriction on static methods are?
A. They cannot refer this or super in any way.
B. They must only access static data.
C. They can only call other static methods.
D. All of the above
Recent Comments