subbu ramana java dumps

37
B)100% subbu answer

Upload: mohammed-shuaib-ur-rehman

Post on 26-Dec-2015

259 views

Category:

Documents


3 download

DESCRIPTION

Core java dumps

TRANSCRIPT

Page 1: Subbu Ramana Java Dumps

B)100%

subbu answer

Page 2: Subbu Ramana Java Dumps

A)100%

A)100%

subbu answer

subbu answer

Page 3: Subbu Ramana Java Dumps

B)100%

D)90%

subbu answer

subbu answer

Page 4: Subbu Ramana Java Dumps

B)100%

subbu answer

subbu answer

Page 5: Subbu Ramana Java Dumps

D)100%

D)100%

A)100%

subbu answer

subbu answer

Page 6: Subbu Ramana Java Dumps

D)100%

C)1000%

subbu answer

subbu answer

Page 7: Subbu Ramana Java Dumps

B)100%

C)101%

subbu answer

subbu answer

Page 8: Subbu Ramana Java Dumps

D)100%

B,C)100%

subbu answer

subbu answer

subbu answer subbu answer

Page 9: Subbu Ramana Java Dumps

D)100%

D)100%

subbu answer

subbu answer

subbu answer

Page 10: Subbu Ramana Java Dumps

c)100%

c)100%

subbu answer

subbu answer

Page 11: Subbu Ramana Java Dumps

B)100%

C)100%

subbu answer

subbu answer

Page 12: Subbu Ramana Java Dumps

D)100%

B)100%

subbu answer

subbu answer

Page 13: Subbu Ramana Java Dumps

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

Page 14: Subbu Ramana Java Dumps

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

Page 15: Subbu Ramana Java Dumps

C) 100%

subbu answer

Page 16: Subbu Ramana Java Dumps

D,C)

subbu answer

subbu answer

subbu answer subbu answer subbu answer

Page 17: Subbu Ramana Java Dumps

A)

subbu answer

subbu answer

Page 18: Subbu Ramana Java Dumps

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

Page 19: Subbu Ramana Java Dumps

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

Page 20: Subbu Ramana Java Dumps

B)

OPTIONS :

A. Runtime exception on line 8

B. Thread one

thread two

C. Unpredictable

D. Thread two

Thread one

subbu answer

Page 21: Subbu Ramana Java Dumps

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

Page 22: Subbu Ramana Java Dumps

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

Page 23: Subbu Ramana Java Dumps

subbu answer

subbu answer

subbu answer

Page 24: Subbu Ramana Java Dumps

Ans: case1,case2,default… 100%

Ans: D) 101%

subbu answer

subbu answer

Page 25: Subbu Ramana Java Dumps

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

Page 26: Subbu Ramana Java Dumps

C)

B,c)

subbu answer

subbu answer subbu answer

Page 27: Subbu Ramana Java Dumps

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

Page 28: Subbu Ramana Java Dumps

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

Page 29: Subbu Ramana Java Dumps

C) 100%

D)101%

subbu answer

subbu answer

Page 30: Subbu Ramana Java Dumps

D)100%

B)100%

subbu answer

subbu answer

Page 31: Subbu Ramana Java Dumps

C)100%

D)100%

subbu answer

subbu answer

Page 32: Subbu Ramana Java Dumps

B)100%

A)100%

subbu answer

subbu answer

Page 33: Subbu Ramana Java Dumps

B,C)100%

subbu answer

subbu answer

subbu answer

Page 34: Subbu Ramana Java Dumps

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

Page 35: Subbu Ramana Java Dumps

A)100%

C,A) 90%

subbu answer

subbu answer

subbu answer subbu answer

Page 36: Subbu Ramana Java Dumps

A)100%

D,B)

Ques is written and covered above also

subbu answer

subbu answer

subbu answer subbu answer

Page 37: Subbu Ramana Java Dumps