0 votes
in JAVA by
How many class files are created on compiling the OuterClass in the following program?

1 Answer

0 votes
by

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();  

}  

}  

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

Related questions

0 votes
asked May 4, 2021 in JAVA by SakshiSharma
0 votes
asked Apr 9, 2021 in JAVA by Robindeniel
...