Q37. Which of the following are true about IO filters? A Filters are supported on input, but not on output.& J+ V4 k# Q; q8 a
B Filters are supported by the InputStream/outputStram class hierarchy, but not by the Reader/Writer class hierarchy.
) ]7 V# Y: o% I u+ A7 x C Filters read from one stream and write to another./ @6 @6 k9 A9 z6 v+ W$ P7 Q4 H, v
D A filter may alter data that is read from one stream and written to another., y3 \# i( M0 C8 t& ~0 g9 g
Q38 Which of the following are true?. {6 m5 A5 }; {! a8 I% l+ C
A Only threads have locks.
3 p; t% a4 m, u0 y% d9 y0 e" p B Classes have locks; J9 \+ x: ?4 {2 j3 M
C Primitive types have locks.0 J: } h* W) Q
D Only Runnable objects have locks.0 h" S& q! G% M$ Q m+ n, e
Q39 What output does the following program display?& w! `6 O% y: e* d( z7 E7 H- L' E
import java.util.*;/ T4 O1 ~5 z/ H/ h' W
class Question {
6 U/ O e! @# H, F public static void main (String args[]) }
& E- W0 `! c* A String s1 = “abc”; |