• ¿Documento equivocado? Cámbialo gratis
  • Escrito por estudiantes que aprobaron
  • Inmediatamente disponible después del pago
  • Leer en línea o como PDF
Vender
¿Dónde estudias?
Tu idioma
Document preview thumbnail
Vista previa 1 fuera de 2 páginas
Notas de lectura

Introduction to Java

Document preview thumbnail
Vista previa 1 fuera de 2 páginas

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.

Vista previa del contenido

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 }

Información del documento

Subido en
27 de agosto de 2023
Número de páginas
2
Escrito en
2023/2024
Tipo
Notas de lectura
Profesor(es)
Aslam safla
Contiene
Todas las clases
$7.85

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Vendido
0
Seguidores
0
Artículos
4
Última venta
-



Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes