Consider the following code:
import java.io.*; class Daddy { int methodOne( int a, long b ) throws IOException { … } float methodTwo( char a, int b ) { … } } public class Boy extends Daddy { }
And the methods:
(α) public static void main( String args[] ) { … }
(b) int methodOne( int c, long d) throws ArithmeticException { … }
(c) float methodTwo( char c, int d) { … }
Witch of them belong to Boy class?
1. (α) & (β)
2. (b) & (c)
3. (α) & (c)
4.All of them.
Personaly i believe a) belongs 100% to boy class cause its the main but im not sure about the other two :/ What u think guys?