Programming Tip #5 - Understand API’s
If I ask you to write a Hello World program, I know you would do it right the first attempt and you probably could do it in your sleep. But have you ever thought about what comprises of the Hello World program and how it works? Take Java, the stateent to display Hello World would be the below one.
System.out.println(”Hello World”);
But have you ever thought in the above line, what is System, what is out and what is println? And from where do they come from? As a developer, System.out.println would be a common statement that you would be using using on a day to day basis. If you had learned it right from the beginning, probably you would be thinking what’s the big deal, but if you had not learnt it right, here is a minute for you. Just think and answer to yourself the questions that I just raised. If you could not convince yourself or you want to validate yourself then probably you would want to look at the java.lang package and look at the System class API. If you are starter, you should start thinking and looking for answers to how every statement in your code works.









