✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
A program which shows an example ofclass Student{
int id;
String name;
}class MainStudent{
public static void main(String args[]){
Student s1 = new Student();
s1.id=100;
s1.name="Sadiq";
System.out.println(s1.id+" "+s1.name);}}