CSC 253 Lecture 2.

Slides:



Advertisements
Similar presentations
An Overview Of Virtual Machine Architectures Ross Rosemark.
Advertisements

Intro to C#. Programming Coverage Methods, Classes, Arrays Iteration, Control Structures Variables, Expressions Data Types.
Overview of programming in C C is a fast, efficient, flexible programming language Paradigm: C is procedural (like Fortran, Pascal), not object oriented.
In Review JAVA C++ GUIs - Windows Webopedia.com.
The Java Language. Topics of this Course  Introduction to Java  The Java Language  Object Oriented Programming in Java  Exceptions Handling  Threads.
George Blank University Lecturer. CS 602 Java and the Web Object Oriented Software Development Using Java Chapter 4.
CIS 101: Computer Programming and Problem Solving Lecture 8 Usman Roshan Department of Computer Science NJIT.
Software Language Levels Machine Language (Binary) Assembly Language –Assembler converts Assembly into machine High Level Languages (C, Perl, Shell)
CS-341 Dick Steflik Introduction. C++ General purpose programming language A superset of C (except for minor details) provides new flexible ways for defining.
1 ICS103 Programming in C Lecture 2: Introduction to C (1)
Chapter 10 Application Development. Chapter Goals Describe the application development process and the role of methodologies, models and tools Compare.
Platforms and tools for Web Services and Mobile Applications Introduction to C# Bent Thomsen Aalborg University 3rd and 4th of June 2004.
Programming in Java; Instructor:Moorthy Introduction, Objects, Classes, Libraries1 Programming in Java Introduction.
1 CSC103: Introduction to Computer and Programming Lecture No 26.
JAVA v.s. C++ Programming Language Comparison By LI LU SAMMY CHU By LI LU SAMMY CHU.
P51UST: Unix and Software Tools Unix and Software Tools (P51UST) Compilers, Interpreters and Debuggers Ruibin Bai (Room AB326) Division of Computer Science.
Previous Next 06/18/2000Shanghai Jiaotong Univ. Computer Science & Engineering Dept. C+J Software Architecture Shanghai Jiaotong University Author: Lu,
CSCI 224 Introduction to Java Programming. Course Objectives  Learn the Java programming language: Syntax, Idioms Patterns, Styles  Become comfortable.
Hans-Peter Plag October 16, 2014 Session 3 Programming Languages Data Types and Variables Expressions and Operators Flow Control.
Java Introduction Lecture 1. Java Powerful, object-oriented language Free SDK and many resources at
Chapter 1: Introducing JAVA. 2 Introduction Why JAVA Applets and Server Side Programming Very rich GUI libraries Portability (machine independence) A.
Which Language is Better?
JAVA Java is a programming language and computing platform first released by Sun Microsystems in It was first developed by James Gosling at Sun Microsystems,
IT253: Computer Organization Lecture 3: Memory and Bit Operations Tonga Institute of Higher Education.
Introduction and Features of Java. What is java? Developed by Sun Microsystems (James Gosling) A general-purpose object-oriented language Based on C/C++
Lecture :2 1.  DEFENTION : Java is a programming language expressly designed for use in the distributed environment of the Internet. It was designed.
CSC 253 Lecture 2. Some differences between Java and C  Compiled C code is machine specific, whereas Java compiles for a virt. machine.  Virtual machines.
Computer Programming 2 Why do we study Java….. Java is Simple It has none of the following: operator overloading, header files, pre- processor, pointer.
Getting started with Programming using IDE. JAVA JAVA IS A PROGRAMMING LANGUAGE AND A PLATFORM. IT CAN BE USED TO DELIVER AND RUN HIGHLY INTERACTIVE DYNAMIC.
Chapter 1: Introducing JAVA. 2 Introduction Why JAVA Applets and web applications Very rich GUI libraries Portability (machine independence) A real Object.
Overview of Java CSCI 392 Day One. Running C code vs Java code C Source Code C Compiler Object File (machine code) Library Files Linker Executable File.
Computer Organization and Design Pointers, Arrays and Strings in C Montek Singh Sep 18, 2015 Lab 5 supplement.
Getting Started With Java September 22, Java Bytecode  Bytecode : is a highly optimized set of instructions designed to be executed by the Java.
Announcements You will receive your scores back for Assignment 2 this week. You will have an opportunity to correct your code and resubmit it for partial.
C is a high level language (HLL)
CSE 303 Concepts and Tools for Software Development Richard C. Davis UW CSE – 10/11/2006 Lecture 7 – Introduction to C.
Chapter 1: Preliminaries Lecture # 2. Chapter 1: Preliminaries Reasons for Studying Concepts of Programming Languages Programming Domains Language Evaluation.
20-753: Fundamentals of Web Programming Copyright © 1999, Carnegie Mellon. All Rights Reserved. 1 Lecture 15: Java Basics Fundamentals of Web Programming.
High-level language programming paradigms. Programming languages come in many forms or 'paradigms'. Each form of language offers advantages over other.
C-- by Aksel Gresvig. Outline ● What is C--? How does it work? ● What C-- is not ● Relationship to C ● What does it look like? Examples ● Elements of.
Sung-Dong Kim, Dept. of Computer Engineering, Hansung University Java - Introduction.
A Single Intermediate Language That Supports Multiple Implemtntation of Exceptions Delvin Defoe Washington University in Saint Louis Department of Computer.
Computer Systems Nat 5 Computing Science
Computer Applications in Business
Object Oriented Programming in
Computer Organization and Design Pointers, Arrays and Strings in C
Assembler, Compiler, MIPS simulator
Visit for more Learning Resources
Names and Attributes Names are a key programming language feature
Interpreted languages Jakub Yaghob
Introduction to programming
Key Ideas from day 1 slides
Computer Systems Nat 5 Computing Science
Microprocessor and Assembly Language
C Language VIVA Questions with Answers
IEEE floating point format
Introduction to .NET Framework Ch2 – Deitel’s Book
Assembler, Compiler, Interpreter
CSC 253 Lecture 8.
Programming Languages
Introduction to the C Language
Representing Data How does a computer represent data?
CSC 253 Lecture 8.
Lesson Objectives Aims Key Words Compiler, interpreter, assembler
Assembler, Compiler, Interpreter
(Computer fundamental Lab)
The Challenge of Cross - Language Interoperability
Arithmetic Operations
CSc 453 Interpreters & Interpretation
SPL – PS2 C++ Memory Handling.
Presentation transcript:

CSC 253 Lecture 2

Some differences between Java and C

C vs. Java Why are OSs written in C? Two steps in the Java compile-run sequence are “skipped” with C. What two steps? What’s the advantage of skipping them? What’s “bad” about skipping them? Advantage: Can optimize code for specific platform. For real-time computing, you need to know how long it takes to run code. Disad.: Need to distribute different binaries for every system code runs on. Will your libraries all run on these different machines? If you run over the Web, you will need to use Java or some other portable language.

Pointers Advantages? Disadvantages? Directly control memory—when it’s allocated & deallocated. C does not natively offer a GUI, thread support, exception handling or packaging

Summary: Advantages of C

Summary: Advantages of Java

Variables used by > 1 function Should they be … Global? … How can such a value be passed into a function? How can such a value be returned from the function?

Why not use lots of globals? One reason: Clutters namespace

Why should you not do arithmetic on characters?

Let’s write a program to … determine the value of INT_MAX; that is, show an integer i that prints as positive, whereas i+1 prints as negative.

Let’s write a program to look at the bits in INT_MAX and see how it’s represented in our computer.