🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Pagination and Sorting: all 10 questions

Quiz: Pagination and Sorting · Question 4 of 10

What does PageRequest.of(1, 10) request?

What does PageRequest.of(1, 10) request?

  1. A.The first 10 rows
  2. B.Rows 11 to 20 (the second page)
  3. C.Row number 1 to row number 10
  4. D.1 row, skipping 10
Answer & explanation

Correct answer: Rows 11 to 20 (the second page)

Spring Data pages are zero-based, so page 1 is the second page.

Can you get the rest right without peeking?

Take the timed Quiz: Pagination and Sorting quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →