Thursday 31 October 2013

Introduction to java

Java is an advanced programming language then c & c++.
It is purely OBJECT ORIENTED PROGRAMMING......




DATATYPES IN JAVA
All datatypes of C++ inherited into java with some distinct features.

The keywords signed and unsigned are not available in Java.

Integral Datatypes occupy double then C++ datatypes.
1.short : occupy 2 bytes and -32768 to32767.
2.int : occupy 4 bytes
3.long : occupy 8 bytes
4.byte : occupies 1 byte
5.char : occupy 2 bytes
6.boolean : TRUE or FALSE
7.String: Actually "String" is not a datatype but it is a class.
               But We need not use 'new' Key word to creat the object of string Class.
8.float : 4 bytes
9.double : 8 bytes



Skeleton of JAVA Programme

class <class name>
{
      public static void main(String[] args)
      {
       }
}


We will understand the above program soon in next post......

2 comments:

  1. Hello, i think that i saw you visited my weblog so i got here to return the choose?.I'm attempting to to find things to enhance my website!I guess its
    adequate to make use of a few of your concepts!!


    My web site: law firms phoenix az

    ReplyDelete
  2. I believe everything said was very logical.
    However, consider this, what if you were to write a killer title?
    I am not saying your information isn't solid, however suppose you added a
    title to maybe get folk's attention? I mean "Introduction to java" is kinda vanilla.
    You ought to glance at Yahoo's home page and note how
    they write post titles to grab people to open the links.
    You might try adding a video or a picture or two to grab readers excited about everything've written. In my
    opinion, it could bring your posts a little livelier.


    Also visit my web page - tampa accident attorneys

    ReplyDelete

THANKS FOR UR GREAT COMMENT

Blogger Widgets