Possible Duplicate:
Java: Multiple class declarations in one file
Recently I was going through a java class in which I have discovered that it was a java class with the named A but after that there was another class named B was written after Class A in the same java file ..like this
class A
{
}
Class B
{
}
but the class was finally saved with the name A.java , Please let me know is it any kind of design pattern ..!!