100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Class notes

Introduction to Java

Rating
-
Sold
-
Pages
2
Uploaded on
27-08-2023
Written in
2023/2024

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.

Show more Read less








Whoops! We can’t load your doc right now. Try again or contact support.

Document information

Uploaded on
August 27, 2023
Number of pages
2
Written in
2023/2024
Type
Class notes
Professor(s)
Aslam safla
Contains
All classes

Subjects

Content preview

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 }
R133,00
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
nicholasmavundlhajesussaves

Get to know the seller

Seller avatar
nicholasmavundlhajesussaves University of Cape Town
View profile
Follow You need to be logged in order to follow users or courses
Sold
0
Member since
2 year
Number of followers
0
Documents
4
Last sold
-

0,0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

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

Didn't get what you expected? Choose another document

No worries! You can immediately select a different document that better matches what you need.

Pay how you prefer, start learning right away

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

Student with book image

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

Alisha Student

Frequently asked questions