How to get data of an specefic row or column in sql : <p>Example</p>

<pre><code>id name surname
0  Alex A
1  Mark B
2  Bill C
</code></pre>

<p>Let's suppose that I want to get the name and surname where id equals 1 in Java, how can I get the values of each column</p>
