In SFDC we have methods to identify the type of ID
Sample code:
Id idType = '50011000002ZXX';
Schema.sObjectType entityType = idType.getSObjectType();
System.debug('ID belongs to:'+entityType); //ID belongs to: Case
Can we make use of the above methods in Java code using an API? How would one access these methods?