A. transforms s1 into the union of s1 and s2
B. transforms s1 into the intersection of s1 and s2.
C. transforms s1 into the (asymmetric) set difference of s1 and s2
D. copies elements from s2 to s1
E. returns true if s2 is a subset of s131
Rate this question:
Answer:a. Compilation fails at TestDirector class
B. Prints: Director Manirathnam also produces films
C. Prints: Director Manirathnam directs filmsDirector Manirathnam also produces films
D. Prints: Director Manirathnam directs films
E. Runtime Error
Rate this question:
A. Prints: equals
B. Compile-time error: Integer wrapper cannot accept char type
c. Prints: EQ
D. Compile-time error: Wrapper types cannot be compared using equals
E. Prints: equals EQ
Rate this question:
True
False
Rate this question:
A. first()
B. hasRecords()
C. next()
D. last()
E. previous()
Rate this question:
Answer:a. 0 1 2 3 4 0 1 2 3 4
B. 0 1 2 3 4 5
C. 0 1 2 3 4
D. 1 2 3 4 5
E. Indefinite Loop
Rate this question:
Answer:a. protected
B. private
C. final
D. public
E. abstract
Rate this question:
A. An exception is thrown at runtime
B. The code runs with no output
C. Welcome!
D. Planet!
E. Compilation fails
Rate this question:
A. NavigableMap
B. NavigableSet
C. NavigableList
D. Deque
E.gillete
Rate this question:
True
False
Rate this question:
A. public void add(A a) { a.getValue(); }
B. public void add(B b) { b.getValue(); }
C. public void add(C c1, C c2) { c1.getValue(); }
D. public void add(C c) { c.getValue(); }
E. public void add(A a, B b) { a.getValue(); }
Rate this question:
A. Array index can be a long value
B. Array index can be a negative value
C. String[][] s = new String[5][];
D. String[][] s;
E. Array decaration: String[6] strarray;
Answer:a. InputStreamReader and FileInputStream
B. FileInputStream and FilterInputStream
C. LineInputStream and BufferedInputStream
D. FileReader and BufferedReader
E. FileInputStream and BufferedInputStream
Rate this question:
A. In Associations, cardinality refers to the number of relatedobjects
B. Association refers to binding of related data and behavioursinto a single entity
C. Associations are bi-directional
D. Association refers to a class reuses the properties andmethods of another class
E. Association refers to an object composed of set of otherobjects
Rate this question:
Answer:a. JDBCTypes
B. JDBCSQLTypes
C. No explicit data type mapping. Automatically mapped onQuery Call.
D. Types
E. SQLTypes
Rate this question:
A. The code compiles and runs 3 non ending non daemon threads
B. The code compiles but runs only 1 non ending, non daemon thread
C. Runtime Error "IllegalThreadStateException"
D. Compilation error "ut2.run() is never reached"
Rate this question:
A. It will not compile because of the different return type.
B. It will not compile because of the different input type in theparameter list.
C. The double version overrides the float version.
D. It will compile but will not override the GenericFruit methodbecause of the different parameter list.
Rate this question:
Answer:a. public class Test1 {public static void main() {System.out.println("Test1");}}
B. public class Test2 {static public void main(String[] in) {System.out.println("Test2");}}
C. public class Test3 {public static void main(String args) {System.out.println("Test3");}}
D. public class Test4 {static int main(String args[]) {System.out.println("Test4");}}
E. public class Test5 {static void main(String[] data) {System.out.println("Test5");}}
Rate this question:
A. char[][][] charArray = {{'a', 'b'}, {'c', 'd'}, {'e', 'f'}};
B. char[][][] charArray = {{{'a', 'b'}, {'c', 'd'}, {'e', 'f'}}};
C. char[][][] charArray = {{'a', 'b'}, {'c', 'd'}, {'e'}};
D. char[][][] charArray = new char[2][2][];
E. char[2][2][] charArray = {'a', 'b'};
Rate this question:
A. System.out.println(iArgs);
B. System.out.println(iam);
C. System.out.println(iOther);
D. System.out.println(s);
A. Test(3)Test(2)Test(1)
B. Test(2)Test(1)Test(3)
C. Test(1)Test(2)Test(3)
D. Test(1)Test(3)Test(2)
Rate this question:
A. 18 20
B. 17 19
C. 20 18
D. 17 17
E. 19 17
Rate this question:
A. To call the wait() method, a thread must own the lock of theobject on which the call is to be made.
B. To call the yield() method, a thread must own the lock of theobject on which the call is to be made.
C. To call the sleep() method, a thread must own the lock of theobject which the call is to be made.
D. To call the wait() method, a thread must own the lock of thecurrent thread.
E. To call the join() method, a thread must own the lock of theobject on which the call is to be made
E. JVM thrown exceptions can be thrown programmatically
Rate this question:
True
False
Rate this question:
A. node1.node = null;
B. node1 = node1.node;
C. node1.node = new Node();
D. node1 = null;
E. node1 = new Node();
F.sothika
Rate this question:
Answer:a. java.io
B. java.util
C. java.lang
D. java.lang.annotation
E. java.sql
Rate this question:
Answer:a. final
B. default (blank), that is, the method declaration would readvoid setWidth( int n )
C. protected
D. private
E. public
Rate this question:
A. Inheriting from two super classes
B. Inheriting from a class which is already in an inheritance hierarchy
C. Inheriting from more than one super class
D. Inheriting from a single class
E.thigil pandi
Rate this question:
A. Runtime error: NullPointerException
B. Prints: false
C. Compilation error: cannot find the symbol
D. Prints: true
E. Compilation error: v is not initialised inside the constructor
Rate this question:
Answer:a. Prints: 0,0,0,null
B. None of the listed options
C. Run-time error
D. Prints: 0,0,0.0,null
E. Compile-time error
Rate this question:
Answer:a. Runtime Error
B. Prints: 0
C. No output
D. Compilation Error
Rate this question:
A. @SuppressWarnings
B. @Target
C. @Retention
D. @Override
E. @Deprecated
Rate this question:
Answer:a. abc
B. Runtime error
C. HWJ
D. HelloJavaWorld
E. Compile error
Rate this question:
A. All exceptions are thrown by JVM
B. All RuntimeException are thrown by JVM
C. JVM cannot throw user-defined exceptions
D. All exceptions are thrown programmatically from the code orAPI
E. JVM thrown exceptions can be thrown programmatically
F.NARAYANAN M.E.,M.S.,
It provides static factory class
B. All major implementations like Hashtable, Vectors aresupported
C. They provide hooks for custom implementations
D. All major interfaces are supported
E. Map is not supported
Rate this question:
Answer:a. Map
B. Set
C.queue
D.list
Rate this question:
A. The output "Exception 2" is because of the exception thrownprogrammatically
B. The output "Exception 1" is because of the Exception thrownprogrammatically
C. The output "Exception 1" is because of the Exception thrownby JVM
D. The Exception thrown by generateException() method is anUnchecked Exception
E. The output "Exception 2" is because of the Exception thrownby JVM
Rate this question:
A. Compiles and executes successfullyPrints "Run method executed"
B. Compiles and on executionPrints "Run method executed" thenthrows Runtime exception
C. Compilation Error
D. Compiles and on executionPrints "Run method executed"
Rate this question:
Answer:a. a = 10, b = 30
B. a = 0, b = 30
C. a = 20, b = 30
D. a = 10, b = 0
E. throws TransientException at the commented line (// Line 1)
Rate this question:
A. Prints 0
B. Prints: 01
C. Prints: 10
D. Prints 1
E. Compile-time error
Rate this question:
A. to invoke Garbage collector
B. to create new memory locations
C. to query the total memory and free memory
D. to dump the objects to storage device
E. to run finalize methods explicitly
Rate this question:
Answer:a. The String variable 'name' declared in line 3
B. Invoking methodA() defined in line 4
C. The int variable 'nn' declared in line 4
D. The int variable 'serialN' declared in line 5
E. The int variable 'ID' declared in line 2
Rate this question:
A. No output
B. Compile time error
C. Prints: Caught Runtime Exception
D. Prints: Caught Exception
Rate this question:
Answer:a. Declared in the Object class
B. It is polymorphic
C. Essential for inheriting a class
D. Defined in the Object class
E. Gives the String representation of an Object
Rate this question:
Quiz Review Timeline (Updated): Jul 22, 2024 +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.