Computer Science, asked by hussainzia2005, 5 months ago

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 anik6722
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