Java

JAVA 


JAVA BASICS

         Java  is a general purpose computer programming language.It comes under Write once and Run anywhere condition which means we can run compiled java code on all platform that support java without the need for recompilation.
         To understand Java programming language,we need to understand some basic concept of how a computer program can run a command and execute the action.



Syntax for Java:
There are five primary goals in the creation of java language:
1)It must be simple and object oriented
2)It must be robust and secure
3)It must be"architecture -neutral and portable
4)It must execute with high performance
5)It must be interpreted and dynamic

Syntax:
public void process data( )
{
    do
    {
        int data =get data( );
        if (data<0)
            performoperation1(data1);
        else
            performoperation2(data2);
     }
     while (hasmoreData( ));
}

                    


Comments