Default Constructor printing default values

 

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

Google Script for Data Entry Form in Google Spreadsheet

// function to validate the entry made by user in user form function validateEntry (){ // declare a variable and referernece of active goog...