100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Introduction to Java $7.57   Add to cart

Class notes

Introduction to Java

 2 views  0 purchase
  • Course
  • Institution

The notes were taken from all the lectures (including SIPP) since the beginning of the semester. Notes will be regularly updated with time. Notes are concise and easy to read. They are a summation of the key points from the slides and the lecturers.

Preview 1 out of 2  pages

  • August 27, 2023
  • 2
  • 2023/2024
  • Class notes
  • Aslam safla
  • All classes
avatar-seller
CSC1016S Lecture 02 - 25/07/2023
Topic: Introduction to Java
Course: CSC1016S
Date: 25/07/2023
Professor/Speaker: Aslam Safla

INTRODUCTION TO JAVA
Java is an Object-Oriented Program (OOP)
Created by James Gosling (in 1991)
Released by Sun Microsystems (in 1996)
A type of Interpreted language (executes one line at a time)
Functions are called methods in Java
Java is a compiled language
A regular Java program is a class with the main method
JAVA CODING STEPS: Java code/java byte code/machine language/execute
Java can be considered both a compiled and an interpreted language because
its source code is first compiled into a binary byte-code. This byte-code runs
on the Java Virtual Machine (JVM), which is usually a software-based
interpreter.
Why Java byte code?
Makes Java portable
Allows program to run across various machines
Difference between compiled and interpreted language:
A compiled language is converted into machine code so that the processor
can execute it. An interpreted language is a language in which the
implementations execute instructions directly(line by line) without
earlier compiling a program into machine language. The compiled
programs run faster .th
an interpreted programs.
TYPICAL HELLOWORD PROGRAM
1 public class FirstProgram //class name
2{
3 public static void main ( String [ ] args) //main method
4 {
5 System.out.println("Hello world");
6 //Semi-colons at the end of every statement
7 }

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 nicholasmavundlhajesussaves. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

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

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

72042 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
$7.57
  • (0)
  Add to cart