i tried out this piece of code which shows that both static variables and methods can be accessed by object references.
maybe the ques is wrong .
hope this helps
public class Xxx
{
static int i = 8;
static{System.out.println("at load time i is " + i);}
static void amethod(){
System.out.println("in static amethod()");
}
public static void main(
String args[])
{
Xxx x = new Xxx();
x.i = 9;
System.out.println("refered by ref var i is " + x.i);
x.amethod(); // accessing amethod()
}
}
bye
Arijit