transient keyword is used for declaring variables, and is used in Apex classes. Declaring a variable as transient reduces the view state size. Variables with the
transient keyword cannot be saved and should not be transmitted as a part of the view state of the particular Visualforce page. Transient variables are needed only for the duration of a page request.
transient keyword is used in a serializable Apex class, which means the classes that implement the
Schedulable interfaces. The following Apex objects are natively considered as
Collections(only if the type of object that they hold is automatically marked as