===== 3.6 Power Loss and Reset ===== Power loss occurs under one of the following conditions: *The card is withdrawn from the CAD. *When operating in contactless-only mode, the card loses carrier energy from the radio frequency (RF) field and enters the POWER OFF state as defined in the **//ISO 14443 Specification//** Parts 1-4. *When operating in contactless-only mode, the card receives a Supervisory block (S-block) DESELECT command and enters the HALT state as defined in the **//ISO 14443 Specification//** Parts 1-4. *A mechanical or electrical failure occurs on the card. When power is reapplied to the card and on card reset (warm or cold) the Java Card RE shall ensure that: *Transient data is reset to the default value. *The transaction in progress, if any, when power was lost (or reset occurred) is aborted. *All applet instances that were active when power was lost (or reset occurred) become implicitly deselected. In this case the **deselect** method is not called. *If the Java Card RE implements default applet selection (see [[4.1_Default Applets| Section 4.1, Default Applets]]), the default applet is selected as the active applet instance for the basic logical channel (channel 0), and the default applet's **select** method is called. Otherwise, the Java Card RE sets its state to indicate that no applet is active on the basic logical channel.