50. What is true about threads that stop executing?& [) Q# j* E2 o5 n, p
A. When a running thread's suspend() method is called, then it is indefinitely possible for the thread to start.6 e5 g" [/ P3 b9 I# m
B. The interpreter stops when the main method stops.; f( K7 ^& r# s3 O4 @; w1 x
C. A thread can stop executing when another thread is in a runnable state.( ], R% ~. |+ _1 c% `8 t# q# h& U
D. ......) c1 x. i) W0 W% |
E. ......9 s @9 D. O2 c7 z8 \* t! C
C.9 ?/ ?% O3 @6 P5 r3 i1 l
51. For which of the following code will produce "test" as output on the screen?( V6 |! ]+ B1 } m2 ~# Y
A. int x=10.0;0 v1 n+ r8 i/ u0 T$ @+ x
if (x=10.0)
4 v/ g" Z$ U+ x( q) z# m/ q7 E( ]{
! @! l2 i; T$ h# S$ K8 ]* x& oSystem.out.println("test");
" J6 I# @* x \. H' G}
' z! B+ i& ^- E9 p' Q Y- ?3 n& bB. int x=012;
: t1 a2 O" w) X/ v6 x9 `if (x=10.0)& `+ C' p. S5 `- b! u
{# r2 N$ u% J% b) g$ L, ]: @, W
System.out.println("test");
) s! G$ p, x: Q& I9 D( s6 n1 Q}; [! Y5 s: R5 K0 d" v0 S
C. int x=10f;
- ?! h$ ?: R9 d9 lif (x=10.0): D3 u% p6 |9 E9 G/ f) t% k) b) O
{
6 M* M: W& a1 b$ d0 pSystem.out.println("test");
% \8 e: u0 v- \( f0 b}; \9 z& p. D! O8 W
D. int x=10L;( d6 W; p% B0 n2 \
if (x=10.0)- ~, Q% b7 I# K( C/ s
{
5 }+ b9 k9 d3 YSystem.out.println("test");
; Y* w- X: M2 u/ C9 H R}2 }% V* ^" U# K j2 ^/ H
B." }$ b5 t, p( y- {# F! ?
52. Given this class ?
R: z" U2 Y& t6 ?$ k* L6 z- d% O% _; a Z
class Loop {+ E! ?1 h* K; t. y
public static void main (String [] args){3 K* U- l( q" b
int x=0;
" X; B! S4 z4 Q! \' s+ I8 lint y=0;3 s6 Z" O8 T# I/ {4 [9 V* c6 l
outer: for (x=0; x |