kirran

Monday, May 21, 2012

Structure of c,c++ and java languages

Is Java ,purely object oriented OR not?

It is Partially object oriented ,object oriented means every thing should be in terms of  objects. In java we use data types ,without creating any object using java. we can do fully object oriented programming so it is a partially object oriented .


you can download java software from the  java offical website

To download java software:

www.sun.com


www.java.com


Java available on 4 operating systems

Windows

Linux

Solaris

Macintosh



Now let us study the Structure of a program in various languages


C structure                      C++ structure                   Java structure

C structure
C++  structure
Java  sructure
Document statement
Document statement
        Document statement
Pre-processor statement
Pre-processor statement
            Package statement
Global declaration
Using  namespace
        Import statement
Prototype/defination
Forward class declaration
         Interface statement
Main() function
Global declaration
     Abstract class  stat'mt     
Local declaration
Prototype declaration
      Concrete class declar'n
Function declaration
Class declaration
    Main class declaration
Function defination
Main()


Function declaration


Function defination

  In the above structure which are in green colour ,it indicates such statements are optional,not compulsory     

C structure
C++  structure
Java  sructure





































1 comment: