TOPUPchat logo...
Forgot password?

Select : C language | Java

Q.20] override method

class Example3{
void Twin(int a, float b) {
System.out.println("Hello ");}
}
class SubExample3 extends Example3{
public void Twin(int a, float b)throws java.io.IOException
{
System.out.println("Hemen "); }
}
    

Options]

1. Will run but gives no output
2. Compile error
3. Print 'Hemen'
4. Print 'Hemen' 'Hemen'        

Click to See Answer
1. Will run but gives no output    

Next |

Previous |

Hemen Ashodia [paper setter]
Register & recharge
Male Female
I agree Terms and Conditions