Constructor.Are you confused about it . don't worry . Ok let's see the codepublic class Students {
String name;
int age;
}
public static void main(String[] args) {
// write your code here\
var s1=new Students();
var s2=new Students();
}
}ok now I ask s1 " what is your name and your age ". It will tell My name is null and my age is 0. then I ask s2" what is your name and your age ". it will tell "My name is null and my age is 0…
Social Plugin