100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Lecture Notes - Computer Science CSC1016S (2021) - Absolute Java $3.01   Add to cart

Class notes

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

1 review
 48 views  4 purchases
  • Course
  • Institution
  • Book

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

Preview 4 out of 158  pages

  • November 30, 2021
  • 158
  • 2021/2022
  • Class notes
  • Aslam safla
  • All classes

1  review

review-writer-avatar

By: angeloyangs15143 • 1 year ago

avatar-seller
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.

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller NoteSeller102. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $3.01. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

76462 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$3.01  4x  sold
  • (1)
  Add to cart