Thursday, 19 June 2014

TECHNICAL INTERVIEW AND PRACTICE QUESTIONS ON JAVA - SET 4






     TECHNICAL INTERVIEW AND PRACTICE QUESTIONS ON JAVA - SET 4





1. Exceptions that are expected to possibly occur are called

(A)  checked exceptions
(B) unchecked eceptions
(C) runtime exceptions
(D) errors



2. The following statements

String wer = "12\u3456\u78910 ";
System .out .println (wer. lenght());


(A)  print 4
(B) print 13
(C) print5
(D) print 15



3.Garbage collectors frees the programmer from worrying about

(A) memory leaks
(B) dangling refrences
(C) creating new objects
(D)  recursion







4.Which of the class definitions has initialization block ?


(A) First
(B) Second
(C) Third
(D) Myclass



5.The keywords -try , catch and  finally , are typically used in the sequences


(A) try , catch , finally
(B) finally , try, catch
(C) catch , try , finally
(D) try, finally , catch



No comments:

Post a Comment