Q31.What will appear in the standard output when you run the Tester class?& k: I" m" }8 D6 }4 ^4 V
1. class Tester {5 }1 y& a: H+ D5 R6 n
2. int var;
: N1 r4 ?5 k. \, ~+ H 3. Tester(double var) {
" B# p. I1 M; z2 u7 P2 W, h* M, m6 Y 4. this.var = (int)var;& j& z+ r% V1 n! L
5. }
9 Y( b5 z6 n6 r1 K6 @, m5 j 6. Tester(int var) {
9 p F+ Z' o1 O$ O" h0 |1 Y# h 7. this(“hello”);6 U& Q+ L7 }7 [0 X) {: b
8. }
- _ v$ ^) w- f5 S 9. Tester(String s) {
) o* g5 E8 ]+ w8 b- F9 b 10. this();5 {% M; Z8 Z* T# S* `$ {
11. System.out.println(s);
, K, T' M. U! t+ x. }+ f$ F 12. }6 H8 }2 T- [6 j- M* L7 W
13. Tester() {) `3 \( E1 g$ t0 {. l5 K* D! @4 l
14. System.out.println(“good-bye”);/ x0 g( b' d2 J6 |1 i
15. }7 Z5 {/ d" f- ^ l) D1 S, V
16. public static void main(String args[]) {6 o/ e( f1 d6 L, x9 {2 e6 l
17. Tester t = new Tester(5);
9 b: J; \8 G z 18. }, I7 ^3 f6 b$ K. o4 N8 ^
a. “hello”' V. h1 ^. J( s" V/ W( ~( v; Q5 g1 F
b. 51 r% {( N8 V' T1 \) B
c. “hello” followed by “good-bye”
& E* D5 L1 e" ? P6 \
4 ^/ I/ D0 {" z- l d. “good-bye” followed by “hello” |