When should a developer use the transient keyword? - ProProfs Discuss
Topics
Products
Follow Us:

When should a developer use the transient keyword?



A. To declare an Apex variable as type-less when developing with dynamic Apex.
B. To prevent Apex interface definitions being included in the Apex-based partner WSDL.
C. To prevent Apex controller variables being sent to the Visualforce page as view state.
D. To exclude Apex class variables from getting serialized if they are in a serializable class

This question is part of developing software PD2-2
Asked by Catherine halcombe, Last updated: Jul 01, 2020

+ Answer
Request

2 Answers

devilzP

DevilzP

Answered Apr 05, 2018

To prevent Apex controller variables being sent to the Visualforce page as view state.
To exclude Apex class variables from getting serialized if they are in a serializable class

 

catherine halcombe

Catherine halcombe

Answered Mar 11, 2018

To prevent Apex controller variables being sent to the Visualforce page as view state.
To exclude Apex class variables from getting serialized if they are in a serializable class
 

Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer

Email Sent
We have sent an email to your address "" with instructions to reset your password.