What is Apex?

This is a strongly typed object-oriented, on-demand programming language. The syntax looks mostly like Java and acts like stored procedures.

To know more about this language See below posts.

More Examples

There are many other concepts in this Programming. Above are few of the basic concepts to understand.