Transient

 

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;

class TransientDemo {

public static void main(String[] args) {
try {
//creating object of class Girl;
Girl g1 = new Girl("Bhaviya", 2345, 29);
//creating stram to write data;
FileOutputStream fos = new FileOutputStream("girl.txt");
ObjectOutputStream out = new ObjectOutputStream(fos);
out.writeObject(g1);
out.flush();
//closing stream
out.close();
fos.close();
System.out.println("Write Operation Successful");
} catch (Exception e) {
System.out.println(e);
}
//deserializaton.................
try {
//creating stream to read data;
ObjectInputStream ois = new ObjectInputStream(
new FileInputStream("girl.txt")
);
//reading data
Girl g1 = (Girl) ois.readObject();
//g1.age =0 as age is transient;
//printing the data of serilized object
System.out.println(g1.name + " " + g1.id + " " + g1.age);
ois.close();
} catch (Exception e) {
System.out.println(e);
}
}
}

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...