Installing ANT in Windows

1) Check in CMD type java -version
2) Check for ANT type ant -version
3) If not Installed Download ANT from
4) extract the ant in C drive

Defining Environment variable

User variables

ANT_HOME : ant location [ex: C:\ant]
JAVA_HOME : jdk location [ Ex: C:\Program Files (x86)\Java\jdk1.6.0_20;]
PATH : jdk location and ANT HOME definition [ex: C:\Program Files (x86)\Java\jdk1.6.0_20\bin;%ANT_HOME%\bin]

Getter and Setter in Saleforce Part-2

Hope you have read my previous blog Getter and Setter in Salesforce and this article is in continuation with previous one
I do believe now, you have a clear idea about the concept behind the GET and SET.
let's begin with some physical exercise after that theory part. I will walk you through syntax and followed by example.

Syntax: [Accessmodifier ] [datatype] VariableName {get; set;}
know as Apex properties

How SOQL for Loops is different from standard SOQL queries?

Main difference between SOQL for loops and Standard SOQL queries is of Heap size and it’s always recommended to use SOQL for loops
Let’s take an example and try to understand how it works

Lead[] leadrec = [select id, Name,address from lead];
for(lead ld: leadrec)

The above code is used as a standard SOQL.
Let assume that we have got around 30,000 records and each record will have id, name and address.