You are on page 1of 8

Department of Collegiate and Technical Education

Introduction of java (Unit 1)


Session-5

OOP with Java ( IV Semester)

Computer Science and Engineering

1
Computer Science & Engineering – 15CS42T
Department of Collegiate and Technical Education
CONTENTS
 Java Environment

2
Computer Science & Engineering – 15CS42T
Department of Collegiate and Technical Education
How java Differs from C and C++
Difference between Java and C Language
C Language
It supports keyword like goto, sizeof and typedef.
It contains the data types like struct, union and enum
It supports an explicit pointer type
It supports pre-processor statements
It does not supports those operators
C is a procedure-oriented
C is top down approach

3
Computer Science & Engineering – 15CS42T
Department of Collegiate and Technical Education
Java
•It does not support keyword like goto, sizeof and typedef.

•It does not contains the data types like struct, union and enum

•It does not support an explicit pointer type

•It does not support pre-processor statements

•Java adds new operators such as instance of and >>>

•Java is a object-oriented

•Java is bottom up approach


4
Computer Science & Engineering – 15CS42T
Department of Collegiate and Technical Education
Difference between Java and C++ Language
C++ Language
It supports operator overloading

It support template classes

It supports multiple inheritances directly.

It supports global variables

It supports pointer

It supports header files.


5
It supports Pre-processor directives Computer Science & Engineering – 15CS42T
Department of Collegiate and Technical Education
Java
•It does not support operator overloading

•It does not support template classes

•It does not support multiple inheritances directly. It will support by


using interface
•It does not support global variables

•It does not support pointers

•There is no header file


6
•Java does not support pre-processor Computer Science & Engineering – 15CS42T
Department of Collegiate and Technical Education
Java and World Wide Web

The World Wide Web (www) was limited to the display of still

images & text. The incorporation of java into webpage has made it

capable of supporting animation, graphics, games & wide range of

special effects.

7
Computer Science & Engineering – 15CS42T
Department of Collegiate and Technical Education
The web page with support java becomes more interactive &
dynamic. Java communicates with a webpage through a special tag
called <APPLET>.

<APPLET>

………….

..HTML code…

…………..

</APPLET>
8
Computer Science & Engineering – 15CS42T

You might also like