STUDY GUIDE QUESTIONS WITH
CORRECT ANSWERS
AvoidUusingUinternalUpathUforUyourUclassesU-UCORRECTUANSWERS-
com.guidewire.*UshouldUbeUavoided.UTheseUcanUalwaysUbeUpotentiallyUchangedUorUreplacedUduri
ngUanUupgrade.
WhenUreferencingUtypecodes,UuseUtheUstaticUpropertyUonUtheUtypelistUclassUinsteadUofUtheUstringU
representationU-UCORRECTUANSWERS-
UseUTC_TYPECODEUinsteadUofU"typecode",Uexample:ULossCause.TC_REARENDUinsteadUofU"rearen
d"
UseUtheUtextUforUlogicalUoperatorsUinsteadUofUtheUsymbolsU-UCORRECTUANSWERS-
UseU"and","or",UandU"not"UinsteadUofU"&&",U"||",UandU"!"
CodeUplacementU-UCORRECTUANSWERS-
1)UAvoidUplacingUcodeUwithinUtheUCODEUtabUofUaUPCF.UCreateUaUUIUhelperUclassUinstead
2)UAvoidUextendingUentityUenhancementsUwithUcodeUsupportingUUIUoperations
AvoidUusingUdeprecatedUclassesUandUmethodsU-UCORRECTUANSWERS-
GuidewireUwillUeventuallyUremoveUdeprecatedUclassesUandUmethods.
TurnUonUandUrunUStudioUInspectionsU-UCORRECTUANSWERS-
TheseUanalyzeUconfigurationUresources
UseUwhitespaceUeffectivelyU-UCORRECTUANSWERS-AddUspacesUaroundUoperators
DoUnotUaddUspacesUbetweenUparenthesesUandUoperators
,IndentUlogicalUblocksUofUcodeUbyUtwoUspacesUonly
AddUaUblankUlineUafterUcodeUblocks
AddUtwoUblankUlinesUafterUmethods,UincludingUtheUlastUmethodUinUaUclass
CommentsUandUAnnotationsU-UCORRECTUANSWERS-
DocumentUnewUclassesUandUfunctionsUwithUJavadoc-styleUcomments
UseUsingle-
lineUcommentsUwithinUfunctionsUandUmethodsUwhenUyouUneedUtoUclarifyUtheUintentUofUtheUcode
UseUGoseDocUannotationsUwhichUareUincludedUwhenUgeneratingUGosuDoc
"Upgrade-Safe"UnamingUconventions:UAddUtheUsuffixU_ExtUtoU-UCORRECTUANSWERS-
ColumnsUaddedUtoUexistingUentitiesU
TypecodesUaddedUtoUexistingUtypelistsU
TheUnameUofUcustomUentitiesU
TheUnameUofUcustomUtypelists
NewUPCFUfiles
ScriptUparameters
PackageUnamingUconventionsU-UCORRECTUANSWERS-
UseUtheUformatUcustomer.application.featurecategory.feature
CustomerU-UcompanyUnameUabbreviationU
Application-UInsuranceSuiteUapplicationUcodeU(pc,Ubc,Ucc,Usuite)
FeatureUCategoryU-UmajorUfeatureU(delinquency,Uconfiguration,Uintegration)
FeatureU-UfeatureU(rating,Ucatastrophe,Uauthentication)
Example:Usi.suite.integration.authentication
ClassUnamingUconventionsU-UCORRECTUANSWERS-UseUUpperCamelCase
, DoUnotUaddU_ExtUtoUclassesUwithinUcustomerUpackageUspaces
FunctionUnamingUconventionsU-UCORRECTUANSWERS-UseUlowerCamelCase
UseUaUverbUthatUdescribesUthatUtheUfunctionUisUdoingUi.e.UverifyAddress
DoUnotUaddU_ExtUsuffixUtoUprivateUfunctionsUorUenhancementsUinUcustomerUpackageUspaces
VariableUnamingUconventionsU-UCORRECTUANSWERS-
MemberUvariableUnamesUuseUlowerCamelCaseUwithUaUleadingUunderscoreUi.e.U_pluginCallbackHa
ndler
LocalUvariableUnamesUuseUlowerCamelCaseUshortUnamesUthatUdescribeUtheUpurposeUi.e.UlatestPoli
cyRevision
DisplayUkeyUnamingUconventionsU-UCORRECTUANSWERS-AddUsuffixU_ExtUtooUallUnewUdisplayUkeys
DoUnotUmodifyUautomaticallyUgeneratedUdisplayUkeys
LoggingUisU-UCORRECTUANSWERS-
TheUprocessUofUrecordingUapplicationUactionsUandUstateUtoUaUsecondaryUinterface
LoggingUisUusedUforU-UCORRECTUANSWERS-ApplicationUmaintenanceUandUtroubleshooting
CreatingUstatisticsUrelatingUtoUapplicationUusage
AuditingUbyUcapturingUsignificantUevents
TypicalUeventsUtoUlogUareU-UCORRECTUANSWERS-SuccessU/UFailureU-
UaUtransactionUorUactionUhasUsucceededUorUfailed
RecoveryU-UaUsystemUwentUdownUorUconnectionUfailed,Uretried,UandUrecovered
IdentificationU-UanyUlargeUfunctionalUareasUsuchUasUintegration,Urating,Ureinsurance,UandUrules