title: Why use the `transient` keyword in java?
body: <p>I have an issue related to the <code>transient</code> keyword's use before the <code>private</code> modifier in java .</p>
  
  <p>variable declaration:</p>
  
  <pre><code>transient private ResourceBundle pageResourceBundle; 
  </code></pre>
  
  <p>My class looks like this :</p>
  
  <pre><code>public class LoginViewModel extends AbstractViewModel {
  
      transient private ResourceBundle pageResourceBundle;
  
      @AfterCompose
      public void afterCompose(@ContextParam(ContextType.VIEW) Component view) {
          initializeLoginValues();
          boolean timeout = BooleanUtils.toBoolean(getHttpServletRequest().getParameter("timeout"));
          if (timeout) {
              Messagebox.show(pageResourceBundle.getText("MSG_SESSION_HAS_EXPIRED_PLEASE_LOGIN"), pageResourceBundle.getText("LABEL_ALERT"),
                      Messagebox.OK, Messagebox.ERROR);
          }
          view.getPage().setTitle(CsdcLicence.get().getApplicationName());
      }
  </code></pre>
  
  <p>I have some questions.</p>
  
  <p>1.why use the <code>transient</code> keyword before a private variable?</p>
  
  <p>2.what is the purpose of using this keyword?</p>