13 a luren in java?łuch.
fi
(d) What are comments in Java? Give their ex
(e) Write two difference between if else and swite
12
cep21
ind
Question 2.
(a) Identify the errors if any in the following code snippet
20 for( q == 0; q=<100 ; q+=10)
1
In What will be the value of b, c when n1=10, n2=0 given that
O int b= (n1 < n2)?n1:n2;
O double c=(n2!=0)?(n1/n2):(n1*2);
(c) Given the initial value of a =10, k =2 in the following expression
10!k+= a++ + ++a/2; 2 .
10 Write the final value of k and a.
d) Given the initial value of r = 5 in the following expression.
v=r++ 2 * r +2 *r++; ..
Write the final value of v and r.
(e) Rewrite the following code after debugging (Underline the changes mac
for(int f =10, f> 5, f++)
{ System.out.print(f+”....");
Answers
Answered by
0
Answer:
,hdhhejwyhb uwywv uwb
Answered by
0
Answer:
xxxxxxxxxxxxxxxxxxxxxxxx
Similar questions