
How to handle pagination when there are records like say in millions in java? Or do we handle this using SQL? I as asked this question in an interview.

Hi,
Its better to handle at SQL end. Just fetch the records you need and then display in Java. Database server will give you far good performance then Java pagination.
Thanks
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.