interfaces can't be instantiated - the first rule you're taought about them.
but why does this break down in these examples -
1.) Runnable r = new Runnable();
// some stuff;
Thread t = new Thread(r);
t.start();
2.) addActionListener( new ActionListener(){
public void actionPerformed(ActionEvent ae){
//
}
}
);
some clarification wanted.
also, what all interfaces can be instantiated then?
------------------