Practical learning of programming languages is better than theoretical ?

Find & Book Classes from this segment

For example if one person studies the Java with methods that is used for console window like System.out.print() and other one is studying methods used for GUI like getText();

Which one is better and why ?