This is a really piece of cake apex snippet. Extremely useful when you are developing generic methods.
Id idToProccess = '00611000002ZXX';
Schema.sObjectType entityType = idToProccess.getSObjectType();
System.assert(entityType == Opportunity.sObjectType);
Now leading Axy7.com a Salesforce applications company