49. What will be the output of following code in case of x = 20, x = 40, x = 70?
Class main {
Public static void main(string[] args) {
double salary;
int x;
salary = (x ! = 40)?((x<40)?(4*x + 100) : (4.5 *x +100)) : 300;
System.out.println (salary);
}
(A) 180.0, 800.0, 415.0 (B) 800.0, 415.0, 180.0
(€) 300.0, 180.0, 415.0 (D) 180, 300, 415
50. Which of the following statements is/are true about method overriding?
@ Implements “run time polymorphism....
See more