Possible Duplicate:
How are Anonymous (inner) classes used in Java?
i have a question about java. i saw this in many sources...
Class object = new Class()
{
// What is this, a subclass or what ?
public void someRandomMethod()
{
}
};
umm if is a subclass, when i make the object the class is executed automatically ? I'm confused
and sorry about my english, i try to do my best.
Many thanks !