Hello there...guys and girls sorry for the late lesson. The lesson was late bcoz of the things happened in EK. I also shocked by this situation. Anyway I hope those problems will be solved soon. So lets begin our lesson..
So u built u r first java application.. I hope that all of u got it right. But the thing is u wrote the program from copying what I gave to u. But when u are in IT industry u have to built up u r program of u r own....
Let's see what u write in that program.
/*This is a simple java program.
Save this file as hello.java
*/
class hello
{
public static void main(String args[])
{
System.out.println("Ayubowan Elakiri");
}
}
Ok. above we have the thing u wrote in u r first progrm.
Take this part
/*This is a simple java program.
Save this file as hello.java
*/
This part is the comment part. This part does not affect the program. But when u are in the IT field u must give a comment about ur application. A multi line comment starts with a /* and ends with */ .
If u ae going to give a single line comment u have to start with // and u have to end that with the same //.
OK..Thats about the comment.
next part.
class hello
Ok. I know what is in u r mind..
What is a class....
hmmmm many tutorials and books will explain this in very complicated way..but the thing is we cant understand. So its easy to understand it with a real life example.
So u guys have mobile phones neeee...I think asking that is a useless thing...Almost all have mobile phones neeeeee....so what u got hmmm sony ericsson W800 ..or Nokia 95...he heeee any one got Nokia 1100...that one is a good one neeee... Ok now those are some mobile phones. BUT THEY ALL FALL IN TO ONE MAIN CATEGORY. WHICH IS MOBLIE PHONE CATEGORY. ALL THOSE PHONES BUILT FROM THE SAME SET OF BLUPRINT. SO THAT BLUE PRINT IS CALLED A CLASS.
A class is the blueprint from which individual objects are created.
(more info on this will be on next lesson)
{
public static void main(String args[])
above one defines the main method of the program..From this point onwards the program is starting to run.
System.out.println("Ayubowan Elakiri");
this is the only statement executed in this program...it print the line Ayubowan Elakiri..
he heeeeeee..PRINT..not through the printer..through the monitor..
sooooooooo time to go..hope u understand u r first java apllication..
NEXT LESSON=DATA TYPES AND VARIABLES(IMPORTANT ONE)
So u built u r first java application.. I hope that all of u got it right. But the thing is u wrote the program from copying what I gave to u. But when u are in IT industry u have to built up u r program of u r own....
Let's see what u write in that program.
/*This is a simple java program.
Save this file as hello.java
*/
class hello
{
public static void main(String args[])
{
System.out.println("Ayubowan Elakiri");
}
}
Ok. above we have the thing u wrote in u r first progrm.
Take this part
/*This is a simple java program.
Save this file as hello.java
*/
This part is the comment part. This part does not affect the program. But when u are in the IT field u must give a comment about ur application. A multi line comment starts with a /* and ends with */ .
If u ae going to give a single line comment u have to start with // and u have to end that with the same //.
OK..Thats about the comment.
next part.
class hello
Ok. I know what is in u r mind..
What is a class....
hmmmm many tutorials and books will explain this in very complicated way..but the thing is we cant understand. So its easy to understand it with a real life example.
So u guys have mobile phones neeee...I think asking that is a useless thing...Almost all have mobile phones neeeeee....so what u got hmmm sony ericsson W800 ..or Nokia 95...he heeee any one got Nokia 1100...that one is a good one neeee... Ok now those are some mobile phones. BUT THEY ALL FALL IN TO ONE MAIN CATEGORY. WHICH IS MOBLIE PHONE CATEGORY. ALL THOSE PHONES BUILT FROM THE SAME SET OF BLUPRINT. SO THAT BLUE PRINT IS CALLED A CLASS.
A class is the blueprint from which individual objects are created.
(more info on this will be on next lesson)
{
public static void main(String args[])
above one defines the main method of the program..From this point onwards the program is starting to run.
System.out.println("Ayubowan Elakiri");
this is the only statement executed in this program...it print the line Ayubowan Elakiri..
he heeeeeee..PRINT..not through the printer..through the monitor..
sooooooooo time to go..hope u understand u r first java apllication..
NEXT LESSON=DATA TYPES AND VARIABLES(IMPORTANT ONE)
Last edited:




