5.
Give the output of the program:
public class Output
{
static void main(int aint b)
{
int s=0;
S+=(a>o)?a:-b;
S-=(a<o)?-a+b;
System.out.println(s);
}
}
When:
a. a=-5 and b=-6
b. a=5 and b=6
Answers
Answered by
1
Answer:
class A {
public int i;
private int j;
}
class B extends A {
void display()
{
super.j = super.i + 1;
System.out.println(super.i + " " + super.j);
}
}
Similar questions
Social Sciences,
3 months ago
Math,
6 months ago
Math,
11 months ago
English,
11 months ago
Math,
11 months ago