How to check Person Account are enabled using Apex?

Some time it is needed to check whether this org has person account enabled or not.

There are couple of ways we can think of,

  • Using Describe Call

– Describe Call count against Governor limits.

  • Accessing field of Account (“isPersonAccount”)

In this method exception getting generated if that field doesn’t Exist.