Javac
Javac
Javac
B. [3, 2]
C. [3, 2, 5]
D. [3, 5, 2]
A#Q18ANS=A
A#Q19ANS=B
A#Q17. What is the output of this program?
import java.util.*;
class Bitset {
public static void main(String args[]) {
BitSet obj = new BitSet(5);
for (int i = 0; i < 5; ++i)
obj.set(i);
obj.clear(2);
System.out.print(obj);
}
}
A. {0, 1, 3, 4}
B. {0, 1, 2, 4}
C. {0, 1, 2, 3, 4}
D. {0, 0, 0, 3, 4}
A#Q17ANS=A
A#Q20ANS=D
A#Q20ANS=A
A#Q24ANS=A
A. Inter-thread communication
B. Initial-thread communication
C. Mutual Exclusive
D. None of the above
A#Q26ANS=A
A. Browser
B. Applet
C. Package
D. None of the above
A#Q27ANS=C
A. Window
B. Frame
C. Panel
D. Container
A#Q28ANS=C
A#Q29ANS=B
A#Q30ANS=B
A#Q31.Which of the following is true?
A.A finally block is executed before the catch block
but after the try block.
B.A finally block is executed, only after the catch
block is executed.
C.A finally block is executed whether an exception is thrown or not.
D.A finally block is executed, only if an exception occurs.
A#Q31ANS=C
A#Q32ANS=C
interface OuterInterface
{
public void InnerMethod();
public interface InnerInterface
{
public void InnerMethod();
}
}
public class Outer implements OuterInterface.InnerInterface, OuterInterface
{
public void InnerMethod()
{
System.out.println(100);
}
A. 100
B. Compilation Error
C. Runtime Error
D. None of the above
A#Q33ANS=A
A. Inheritance
B. Encapsulation
C. Polymorphism
D. None of the above
A#Q34ANS=A
A. Throwable
B. Exception
C. RuntimeException
D. IOException
A#Q35ANS=A
A#Q36. JDBC is a ������� interface, which means that it is used to invoke SQL
commands directly
A) low-level
B. middle-level
C. higher-level
D. user
A#Q36ANS=A
A#Q37. ODBC is not appropriate for direct use from java because it uses a ����..
A. C interface
B. C# interface
C. java interface
D. Both A and C
A#Q37ANS=A
A#Q38. Java Soft provides �����.. JDBC product components as part of the java
Developer�s Kit (JDK)
A. three
B. two
C. four
D. single
A#Q38ANS=A
A#Q39. Kind of driver converts JDBC calls on the client API for Oracle, Sybase,
Informix, DB2, or other DBMS is known as
D. Both A and B
A#Q39ANS=C
A#Q40.If an expression contains double, int, float, long, then whole expression
will promoted into which of these data types?
A. long
B. int
C. double
D. float
A#Q40ANS=C