public class Student {
int id;
String name;
// Method to display detail of student
void display() {
System.out.println("ID of the given student is : " + id);
System.out.println("Name of the given student is :" + name);
}
public static void main(String args[]) {
// object creation of Class Student
Student s1 = new Student();
Student s2 = new Student();
// default constructor will print default value i.e null and zero
s1.display();
s1.display();
}
}