Hi Suhas, Generally apexpages.currentpage().getparameters().get('id') is used on every controller for getting id from parameters of page but stdcontroller.getRecord().id is used to get the current record id of In Standard controller or Standard controller.
Generally apexpages.currentpage().getparameters().get('id') is used on every controller for getting id from parameters of page but stdcontroller.getRecord().id is used to get the current record id of In Standard controller or Standard controller.
Can u explain this with an example, so that it would be easy to understand in what kind of scenarios it would be best to use which one.