lec-04-oop.pdf - SENG 12233 JAVA OOP(Lecture 04 Eng Tiroshan Madushanka BSc Eng(Hons moratuwa What is Java \u25cf \u25cf \u25cf \u25cf An object-oriented

lec-04-oop.pdf - SENG 12233 JAVA OOP(Lecture 04 Eng...

This preview shows page 1 - 8 out of 31 pages.

6(1* ±²²³³ ´ -$9$ µ 223 ±Lecture °4² +Eng³ Tiroshan Madushanka )9H ,+SnL ±.ToSnXs° ² RmToWrGFYtZuwGF
Image of page 1
:hat is -ava $n object´oriented programming language ´ -ava certainly provides the syntax and semantics of an object´oriented language $ programming environment ´ -ava has associated with it a large ¶and fairly standard· set of classes¸ 7hese classes make -ava very powerful and promote a standard development style $n operating environment ´ 7he operating environment is the -ava 9irtual 0achine in which all -ava programs execute¸7his is -ava¹s own personal machine which has been ported to a variety of platforms and operating systems 7he language of the :eb ´ -ava has received huge hype as the language which will bring the :eb alive
Image of page 2
2bjects in -ava $lmost everything in -ava is an objectº (¸g stringsº arraysº windows and even integers can be objects 7o program in -avaº define classesº create instances and apply operations to classes and objects
Image of page 3
-ava (nvironment -ava is different from other development environments when you write -ava codeº it does not execute on your host machineº even when it is compiled ,nsteadº it executes in a virtual machineº which in turn executes on your host computer can write code on one hardware platform andº without re´compilationº run it on another hardware platform with a completely different system -ava code always runs on the same machine» the -ava 9irtual 0achine ,nstead of an executable fileºbuild up ¼class¼ files that hold the byte code form of the -ava source¸
Image of page 4
-ava ctd¸ 7he -'. or -ava platform provides a number of tools including a compilerº the virtual machineº a debugger and a documentation tool¸ -avac is the -ava language compiler¸ ,t produces¸ c± ass files containing the byte codes¸ -ava is the -ava 9irtual 0achine also known as the -ava language run time¸ ,t is a bytecode interpreter which is implemented in two parts¸ 7he lower part is reimplemented for different platforms¸ jdb is the -ava debugger¸ ,t is not as sophisticated as some debuggersº but can be very useful¸ jar is the -ava archive tool¸ ,t can be used to combine ¶and compress· multiple files ¶in particularº classº image and sound files· into a single archive file¸ ,t enables you to deliver a -ava application in a single file¸ javah creates & header files and & stub files for a -ava class¸ ,t allows code written in -ava and & to work together¸ javadoc takes a -ava source file and converts the class nameº the methods and the variables into +70/ documentation¸¸
Image of page 5
&onfuse with -ava6cript 7his language is not 0Java and has no direct relationship with -avaº other than a similarity with some of its syntax¸ +oweverº the one big omission that separates -ava and -ava6cript is that you cannot define classes in -ava6cript and thus you lose the potential power of object´oriented programming¸
Image of page 6
6etting up the 'evelopment (nvironment -'. comes with a number of tools including a -ava compiler ¶javac·ºa -ava 9irtual 0achine ¶java·º a tool for viewing applets ¶applet9iewer·ºa rudimentary
Image of page 7
Image of page 8

You've reached the end of your free preview.

Want to read all 31 pages?

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes