Answer by taking a quote from the following article:

Junius Richard Jayewardene (Sinhalese: juniys ricdd jyvrdhn,Tamil: juunnniys ricctt jyvrtnnnaa; 17 September 1906 - 1 November 1996), commonly abbreviated in Sri Lanka as J. R., was the leader of Sri Lanka from 1977 to 1989, serving as Prime Minister from 1977 to 1978 and as the second President of Sri Lanka from 1978 till 1989. He was a leader of the nationalist movement in Ceylon (now Sri Lanka) who served in a variety of cabinet positions in the decades following independence.

Born to a prominent Ceylonese family with a strong association with the legal profession, Jayewardene was the eldest of 11 children, of Hon. Justice Eugene Wilfred Jayewardene KC, a Chief Justice of Ceylon and Agnes Helen Don Philip Wijewardena daughter of Tudugalage Muhandiram Don Philip Wijewardena a wealthy merchant. His younger brothers included Dr Hector Wilfred Jayewardene, QC and Dr Rolly Jayewardene, FRCP. His uncles were the Colonel Theodore Jayewarden, Justice Valentine Jayewardene and the Press Baron D. R. Wijewardena.  Raised by an English nanny, he received his primary education at Bishop's College, Colombo and attended Royal College, Colombo for his secondary education. At Royal College he played for the college cricket team, debuting in the Royal-Thomian series in 1925, and captained the rugby team at the annual "Royal-Trinity Encounter" (which later became known as the Bradby Shield Encounter). Excelling in both studies, sports and Club and Societies He was the first Chairman/Secretary in Royal College Social Services League in 1921 and he became the head prefect in 1925 and also represented the school in football and boxing; he was also a member of the cadet corps. He would later serve as the Secretary of the Royal College Union.  Jayewardene entered the University College, Colombo (University of London), in 1926 to read English, Latin, Logic and Economics; he attained a distinguished academic record and showed a keen interest in sports. In 1928 he transferred law by entering Colombo Law College and passed out as an advocate, starting his practice in the unofficial bar, for a brief period. Jayewardene converted from Christianity to Buddhism in his youth.

Was he a good student?
At Royal College he played for the college cricket team, debuting in the Royal-Thomian series in 1925, and captained the rugby team at the annual "Royal-Trinity Encounter" (