I am confused. The online java tutorial has a line that says:
"The first way to customize what a thread does when it is running is to subclass Thread (itself a Runnable object)"
Again at the point where applets and multithreading is concerned, it asks you to implement the Runnable interface.
As far as I know, an interface contains a set of function declarations and constants. The implementation of those functions are to be provided in the class which implements that interface.
Also an object is an instance of a class.
So if there is a Runnable object, then there should be a Runnable class somewhere in the java language. Again there is also a Runnable interface. Are they the same? What really is meant in the tutorial when they spoke of Runnable objects? Please post your answers in context with the contents of the tutorial.