Thursday, 10 March 2011

Simple Java Program

Well,now the post that you all have been waiting for.Today I'll start programming with you guys.
First let me write the program and then I will explain each component of it.

Program 1:Hello World

class Demo
{
    public static void main(String args[])
    {
        System.out.println("Hello World");
    }
}   

Now let me explain you guys the meaning of the code.

Wednesday, 2 March 2011

Golden Rule

I contacted a few people who are into the core IT industry and asked them for a few tips to write a good program.Most of them gave the same tip and I found it really interesting.But before I tell you guys about the tip I would like to share with you guys some of my tips.

  • Keep the logic of the program "Simple".
  • Before you write down the program or a section of a huge code always "visualize" your output.
  • Start "Indenting" your programs.
Let me explain you what Indenting is.It a very simple method

Tuesday, 1 March 2011

Fact Busted!!!!

All the teachers have always taught us that Java is a purely OOP language.Even I have posted it in my article of OOPS(that's because in that article I wanted to tell you about OOP's and not about Java).BUT this is one of the biggest CONCEPTUAL BLUNDERS that each and every student makes.
As a matter of fact Java is a "partly OOP language".Java can be CONSIDERED a purely OOP language "AS COMPARED" to languages like C and C++.
Let me explain why.