• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 4 out of 158 pages
Class notes

Lecture Notes - Computer Science CSC1016S (2021) - Absolute Java

Document preview thumbnail
Preview 4 out of 158 pages

Entire Syllabus Notes for First-Year, Computer Science 1016 Second Semester Course! All Summaries and Important Parts, Detailed and In-Depth.

Content preview

CSC1016s
2021

, OOP in Java
(Object-Orientated Programming)

Procedural Programming
o Writing procedures that perform data operations.

Object-Orientated Programming
o Creating objects that contain both data and methods.

Why OOP is better than PP:
 Faster and easier to execute.
 Provides a clear structure for the programs.
 Helps to keep Java ode DRY (Don’t Repeat Yourself),
making the code easier to maintain, modify, and debug.
 Makes it possible to create full reusable apps in less code
and shorter development time.


Introduction to Java
 Considered a language for Internet apps.
 General purpose programming language.
 Syntax is similar to that of other high-level languages.


Origins
 Created by Sun Microsystems, led by James Gosling, in ’91.
 Now, owned by Oracle.
 Originally designed for programming home appliances.
o Difficult task, as appliances are controlled by a wide
range of computer processers.

, o Team developed a two-step translation process to
simplify the task of compiler writing for each
appliance class…

• Writing a compiler (translation program) for each
appliance processer type = expensive.
• Rather, developed intermediate language that I the
same for all processor types: Java byte-code.
• Thus, only a small, easy-to-write program was needed to
translate byte code to machine code for each
processor.

 In 1994, at Sun Microsystems, Patrick Naughton and
Jonathan Payne developed a Web browser that could run
programs over the Internet.
o Beginning of Java’s connection to the Internet.
o Original browser evolves into HotJava.
…other companies followed suit.

Objects and Methods
 OOP is a programming methodology that views programs
as consisting of objects that interact through methods.
 Objects of the same kind have same type or in same class.

Java Application Programs
Two types…
Application Programs
 “regular”
 A class with a method named main.
 When run, the run-time system automatically invokes main.
 All start with the main method.
 May use a windowing interface or console IO.

, Applet Programs
 “Little Java application”
 Meant to be run from a Web browser.
 Can be run from a location on the Internet.
 Can be run on Applet viewer program for debugging.
 Always use a windowing interface.

Computer Language Levels
High-Level Language:
…people can read, write, and understand.
 Must be translated into a language that can be
understood by a computer before it can be run.

Machine Language:
…computer can understand.

Low-Level Language:
…Machine Language / any similar to Machine Language.

Compiler:
…program that translated High-Level Language programs
into equivalent Low-Level Language programs.
 Translation process = compiling.

Connected book
 image
Walter Savitch, Kenrick Mock Absolute Java
Publisher: 2015 ISBN: 9780134041674 Edition: Unknown

Document information

Uploaded on
November 30, 2021
Number of pages
158
Written in
2021/2022
Type
Class notes
Professor(s)
Aslam safla
Contains
All classes
$3.12

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
NoteSeller102
3.0
(3)
Sold
10
Followers
9
Items
7
Last sold
1 year ago

Reviews from verified buyers




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions