Question: in java code + output correct ans only 6. Write a program to print the names of students by creating a Student class. If no
in java code + output

correct ans only
6. Write a program to print the names of students by creating a Student class. If no name is passed while creating an object of Student class, then the name should be "Unknown", otherwise the name should be equal to the String value passed while creating object of Student class. (Hint: use constructor overloading). 7. Create an outer class with a function display, again create another class inside the outer class named inner with a function called display and call the two functions in the main class
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
