Search
.Management Sciences
Category: Java concepts and its programming
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
_________ allows java code to run in the JVM to call and be called by native applications ?
A. JNI
B. FJI
C. NJI
D. JFI
Which of the following command is used to compile the Java program ?
A. java
B. javac
C. javap
D. none of these
Which collection class associates values witch keys, and orders the keys according to their natural order ?
A. java.util.LinkedList
B. java.util.TreeMap
C. java.util.SortedSet
D. java.util.HashSet
Recent Comments