</p> }
. a$ Z/ K9 G% P3 F A S1) s' k- }8 o% R
B S2/ M3 K( g( X0 n0 j" A; y
C null4 J$ S* Q/ U) @4 F; i& s
D Outer+ W E4 V$ x8 r3 Z5 Y1 Q
Q41 What is the output of the following program?
4 r$ f, P& r3 q& R1 l class Question {0 z' h! r3 g | q( r
static int i = 1;
" }* L, i$ f, |( _9 L m, T( B% O static {
: H$ P5 ?8 e3 W1 `9 \ ++i;" M5 h/ f4 g/ l
}
+ F: n( k" o5 [0 ]3 o- ^ public static void main (String[] args)5 ^# Y# }- w! x
{
& E9 ^- T& F9 ]3 H p: ` increment (i, 5);
) }* R: k6 q U: R+ M$ I3 }/ B. { display(i);5 `: D8 }# m' w! [$ W1 d( V$ d$ d
}* ?& _0 H: c1 z0 m( C' T
static void increment(int n, int m) {
' ?' [ L# U6 n9 j# e n+=m; H% ~0 P5 |' h; e3 |
}
5 x( |. _! R. p% {9 P. ?5 Y2 n3 \, w static void display (int n) {
/ m. }7 X7 E1 U/ I e" G9 K/ E System.out.print(n);% A5 e$ s% |9 @, W1 W
}
* C7 O* T" A. n& o: P1 Q, p, p5 Z
static { |