I have linkId = ApexPages.currentPage().getParameters().get('Id');
.
I want to determine wether what object this ID belongs. Is it Sample1_Object__c
ID or Sample2_Object__c
ID..
This is a sample debug of an ID:
USER_DEBUG|[11]|DEBUG|a0T9000000KxMLAEA3