They are relevant to him.* He is currently logged in, and his location is visible on the left side of the image. Google uses his previous search queries as well as information about him and his location to provide a relevant result. He has probably searched for Java and R before. If you try searching pdf in your own browser, it is likely there will be different results.
*I meant that it is what Google thinks is relevant to him based on the data that they have.