Вы находитесь на странице: 1из 37

B)100%

subbu answer

A)100%

A)100%
subbu answer
subbu answer

B)100%

D)90%

subbu answer
subbu answer

B)100%

subbu answer
subbu answer
D)100%

D)100%

A)100%

subbu answer
subbu answer

D)100%


C)1000%
subbu answer
subbu answer

B)100%


C)101%
subbu answer
subbu answer

D)100%

B,C)100%
subbu answer
subbu answer
subbu answer
subbu answer

D)100%

D)100%
subbu answer
subbu answer
subbu answer

c)100%


c)100%
subbu answer
subbu answer

B)100%

C)100%

subbu answer
subbu answer
D)100%

B)100%
subbu answer
subbu answer

B)100%


b)
QUESTION: Which of the following statements are true regarding try-catch-finally?
a. An exception which is not handled by catch block can be handled by writing another catch block inside finally.
b. Finally block cannot have a try block with multiple catch blocks.
c. A catch block can have another try block nested inside.
d. An exception which is not handled by a catch block will be handled by subsequent catch blocks.
QUESTION: Constructors can be declared as private. State true or false?
a. True
b. False
QUESTION: a private method can be declared as abstract. State true or false?
subbu answer
subbu answer
subbu answer
subbu answer
subbu answer
subbu answer
a. True
b. False
QUESTION: Which of the following statement is true about finalize method?
a. Finalize will always run before an object is garbage collected.
b. Finalize may run before or after an object is garbage collected.
c. Finalize allows a programmer to free memory allocated to an object.
d. Finalize will run when an object becomes unreachable.

A)85%

QUESTION: Shyam has a best friend who is a tree
Which of the following option represents the above relationship correctly?
a. Class Shyam { private BestFriend Tree; }
b. Class Shyam { private Tree BestFriend; }
c. Class Shyam extends Tree { }
d. Class Shyam implements Tree { }



subbu answer
subbu answer
subbu answer
subbu answer
subbu answer
subbu answer

C) 100%

subbu answer



D,C)
subbu answer
subbu answer
subbu answer
subbu answer
subbu answer


A)

subbu answer
subbu answer

B)

QUESTION: Consider the following statements:
1. no-argument constructor, that does not allow instantiation from within the package
2. no-argument constructor, that does not allow instantiation from outside the package
3. no- argument constructor
Which of the following option gives the exact matches of above listed items and statements?
1. A-1 B-2 C-3
2. A-2 B-3 C-1
3. A-2 B-1 C-3
4. A-3 B-1 C-2
subbu answer

A)
QUESTION: Consider the following code:
Public class javac {
Public static void main (String() args) {
for (String str args) {
System.out.println(str);
}
}
}
and the execution command;
java javac java java javac
what will be the output?
1. Java
Java
Javac
2. An exception will be thrown at runtime
3. Java
4. Compilation fails
subbu answer

B)

OPTIONS :
A. Runtime exception on line 8
B. Thread one
thread two
C. Unpredictable
D. Thread two
Thread one
subbu answer

Guesss..D:Teja-100%

Q2:- which of thew following statements are true? (Choose three)
a. readers and writers are used for i/o on 16-bit Unicode characters
b. FileInputStream and FileOutputStream can be used to read image file
c. FileInputStream and FileOutputSream can be used to read text files
d. FileInputStream and FileOutputSream can be used to handle i/o on 16-bit Unicode characters








subbu answer
subbu answer
subbu answer
subbu answer
subbu answer




OPTIONS
A. A COMPILER ERROR OCCURS
B. Some kind of index out of bound
Array index out of bound
Finally block must be executed
C. Array index out of bounds
Finally block must be executed
D. Some kind of index out of bounds
Finally block must be executed

subbu answer




















subbu answer
subbu answer
subbu answer





Ans: case1,case2,default 100%
Ans: D) 101%




subbu answer
subbu answer



B) 101%

Question: which of the following option can be best matched against the example television
a. Inheritance
b. Abstraction
c. Encapsulation
d. polymorphism



C)111100%
subbu answer
subbu answer

C)


B,c)


subbu answer
subbu answer
subbu answer

C)
Interface Cognizant ()
Class Alpha implements Cognizant()
Class Beta extends Alpha()
Class Delta extends Beta()
Public static void main (String [] args) {
Beta x=new Beta();
//insert code here-----------------line
}
}
Which of the following code will cause a java.lang.ClassCastException when inserted at line

Options are given below in snapshots..


subbu answer

C)

Which of the following Collection can you use to store key value pairs and is thread safe?
Vector
Hashmap
Hashtable
TreeMap

Which of the following statements is TRUE about StringBuffer class?
StringBuffer is a Wrapper to the existing String class.
StringBuffer is a subclass of String class.
StringBuffer is a mutable class. 100%
Stringbuffer can be extended since it is mutable.
subbu answer
subbu answer

C) 100%


D)101%
subbu answer
subbu answer


D)100%

B)100%
subbu answer
subbu answer

C)100%

D)100%

subbu answer
subbu answer

B)100%


A)100%
subbu answer
subbu answer

B,C)100%




subbu answer
subbu answer
subbu answer

A)1001%


Which of the following statements are true?

Static modifier is applicable only for inner classes.
Private members of a class are not accessible through its object instance.
Package level members in a public class will be available to the inherited class outside the package.
Final method is not applicable for abstract classes.
subbu answer
subbu answer
subbu answer
subbu answer


A)100%


C,A) 90%
subbu answer
subbu answer
subbu answer
subbu answer

A)100%


D,B)

Ques is written and covered above also



subbu answer
subbu answer
subbu answer
subbu answer

Вам также может понравиться