class Just {
int a = 10 ;
Just ( ) {
call ( ) ;
}
void call ( ) {
System . out . print( "a = " + a + " ") ;
}
};
class Q05 extends Just {
int b = 16 ;
Q05 ( ) {
call ( ) ;
}
void call ( ) {
System.out.print( " b = " + b + " " ) ;
}
public static void main (
String args [ ] ) {
new Q05 ( ) ;//line 1
}
}
Output of this code is b=0 b=16
After line 1 the superclass constructor is called which calls call()...then which method is called..
and if it is Q05's call() method then why b=0???
:roll: