How many class files are created on compiling the OuterClass in the following program?

Description:

public class Person {  
String name, age, address;  
class Employee{  
  float salary=10000;  
}  
class BusinessMen{  
  final String gstin="£4433drt3$";   
}  
public static void main (String args[])  
{  
  Person p = new Person();  
}  
}  

Solution:

3 class-files will be created named as Person.class, Person$BusinessMen.class, and Person$Employee.class.

0 answers