Know Your Java. Java is special Java source code Byte code/ native code Object code on windows Object code on Dos Object code on Lynux.

Slides:



Advertisements
Similar presentations
Introduction to Java 2 Programming Lecture 3 Writing Java Applications, Java Development Tools.
Advertisements

Introduction To Java Objectives For Today â Introduction To Java â The Java Platform & The (JVM) Java Virtual Machine â Core Java (API) Application Programming.
Lab Information Security Using Java (Review) Lab#0 Omaima Al-Matrafi.
Lab#1 (14/3/1431h) Introduction To java programming cs425
Chapter 3 - Java Programming With Supplied Classes1 Chapter 3 Java Programming With Supplied Classes.
Lecture 2: Do you speak Java?. From Problem to Program Last Lecture we looked at modeling with objects! Steps to solving a business problem –Investigate.
JDK, Jan Pettersen Nytun - HiA 1 The Java Programming Environment: The programmer write source code with a text editor. The programmer write source code.
1 Introduction to Java and Applet Lecture 3 from Chapters 1 and 2 of the complete reference.
1 Introduction to Java and Applet. 2 Download Java Compiler (1)
CS2200 Software Development Lecture: Java Platform Lecturer: Adrian O’Riordan Course Webpage:
1 Chapter 2 Introductory Programs. 2 Getting started To create and run a Java program –Create a text file with a.java extension for the source code. For.
1 Chapter 3 Programs and Packages. 2 Java Virtual Machine (JVM) Java programs execute on the JVM. The JVM is a virtual rather than a physical machine,
Applying OO Concepts Using Java. In this class, we will cover: Overriding a method Overloading a method Constructors Mutator and accessor methods The.
JAVA ENVIRONMENT JDK, API, JVM. JAVA ENVIRONMENT  Java environment includes development tools and many classes and methods. Java Environment JDK (Java.
Introduction to the JDK Java for Computational Finance
Java Software Solutions Lewis and Loftus Chapter 2 1 Copyright 1997 by John Lewis and William Loftus. All rights reserved. Software Concepts -- Introduction.
1 CSC 551: Web Programming Spring 2004 Java Overview  Design goals & features  platform independence, portable, secure, simple, object-oriented, … 
Programming in Java; Instructor:Moorthy Introduction, Objects, Classes, Libraries1 Programming in Java Introduction.
Introduction to Java Appendix A. Appendix A: Introduction to Java2 Chapter Objectives To understand the essentials of object-oriented programming in Java.
CSC 8505 Compiler Construction IR Example: Java Bytecode (looking inside class files)
Java 程序设计 Java Programming Fall, Contents for Today Java Program Structure  How to Compile a Java Program  How to Run a Java Program Environment.
M1G Introduction to Programming 2 4. Enhancing a class:Room.
LESSON 2 CREATING A JAVA APPLICATION JAVA PROGRAMMING Compiled By: Edwin O. Okech [Tutor, Amoud University]
Chapter 2: Objects and Primitive Data Classes and Objects String, Random, Math, NumberFormat, DecimalFormat and Wrapper Classes.
1 Java Methods & Classes – Lecture 4 Prepared by: Ahmad Ramin Rahimee Assistant Professor ICTI.
Java Packages and Libraries M Taimoor Khan
CPRG 215 Introduction to Object-Oriented Programming with Java Module 1-Introduction to Java Topic 1.2 Getting the Tools and Setting Up the Development.
The Basics of Javadoc Presented By: Wes Toland. Outline  Overview  Background  Environment  Features Javadoc Comment Format Javadoc Program HTML API.
1 Module Objective & Outline Module Objective: After completing this Module, you will be able to, appreciate java as a programming language, write java.
Chapter 1: Introducing JAVA. 2 Introduction Why JAVA Applets and Server Side Programming Very rich GUI libraries Portability (machine independence) A.
CIS 644 Aug. 25, 1999 tour of Java. First … about the media lectures… we are experimenting with the media format please give feedback.
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,
Chapter 13. Applets and HTML HTML Applets Computer Programming with JAVA.
Jaeki Song ISQS6337 JAVA Lecture 03 Introduction to Java -The First Java Application-
Java Programming, Second Edition Chapter One Creating Your First Java Program.
David Streader Computer Science Victoria University of Wellington Copyright: David Streader, Victoria University of Wellington Java Programing Basics COMP.
CS 3131 Introduction to Programming in Java Rich Maclin Computer Science Department.
Session 1 Introduction to Java. Objectives Java Simplified / Session 1 / 2 of 32 Explain the history of Java Explain Java in brief List the types of Java.
CS Software Studio Java Lab 1 Meng-Ting Wang PLLAB, Computer Science Department, National Tsing-Hua University.
SOFTWARE TECHNOLOGY - I JAVA/OOP Wickramanayake HMKSK Department of Electrical & Electronic Engineering Faculty of Engineering University.
1 Programming Java Java Basics. 2 Java Program Java Application Program Application Program written in general programming language Applet Program running.
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.
Java and its Evolution. Contents Java Introduction Java Features How Java Differs from other OO languages Java and the World Wide Web Java Environment.
Applets Yong Choi School of Business CSU, Bakersfield.
23-October-2002cse JavaIntro © 2002 University of Washington1 Intro to Java CSE 413, Autumn 2002 Programming Languages
Chapter 1: Introducing JAVA. 2 Introduction Why JAVA Applets and web applications Very rich GUI libraries Portability (machine independence) A real Object.
School of Computer Science & Information Technology G6DICP - Lecture 14 Class Libraries.
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.
Java Software Solutions Lewis and Loftus Chapter 2 1 Copyright 1997 by John Lewis and William Loftus. All rights reserved. Software Concepts -- Introduction.
1 Wrapper Classes  Sometimes we want to use a primitive type as an object, so there are wrapper classes that will help us.  In particular, we need to.
Spring 2009 Programming Fundamentals I Java Programming XuanTung Hoang Lecture No. 8.
CSCI 212 Object-Oriented Programming in Java. Prerequisite: CSCI 111 variable assignment statement while loop for loop post-increment (i++) strong typing.
3/5/2002e-business and Information Systems1 Java Java Java Virtual Machine (JVM) Java Application Program Interface (API) HW Kernel API Application Programs.
Java Computer Industry Lab. 1 Programming Java Java Basics Incheon Paik.
David Streader Computer Science Victoria University of Wellington Copyright: David Streader, Victoria University of Wellington Java Programing Basics COMP.
1 Creating Objects  A variable holds either a primitive type or a reference to an object  A class name can be used as a type to declare an object reference.
SESSION 1 Introduction in Java. Objectives Introduce classes and objects Starting with Java Introduce JDK Writing a simple Java program Using comments.
 It is a pure oops language and a high level language.  It was developed at sun microsystems by James Gosling.
JAVA MULTIPLE CHOICE QUESTION.
Before You Begin Nahla Abuel-ola /WIT.
Programming languages
Chapter No. : 1 Introduction to Java.
Classes, Libraries & Packages
The Building Blocks Classes: Java class library, over 1,800 classes:
Problem Solving, Object-Oriented Design and Java
Applying OO Concepts Using Java
Building a program (Java libraries) - an example
How Java Program Executes
Chap 1. Getting Started Objectives
Chap 4. Programming Fundamentals
Presentation transcript:

Know Your Java

Java is special Java source code Byte code/ native code Object code on windows Object code on Dos Object code on Lynux

Java Development Kit It contains  Java Tools  API (Application Programming Interface)/ Class Library

Java tools  javac – compiler  java – interpreter  javap – disassembler  jdb – debugger  javah – header  javadoc – for HTML programs  java applet viewer

Learning more about tools  javac compiles source code to byte code/ native code  java further interpretes the byte code  disassembler gives back the source code from object code i.e. native code  debugger helps in removing the bugs from the program

Learning more about tools  javah helps in creating internal header files  javadoc enables programming through html documents  javaappletviewer enables to work with applets(applications on net)

Application Program Interface  java.lang – classes String, Math, etc  java.io – classes related to ip /op  java.applet – to support generate applets  java.net – to support classes for net operations  java.awt – abstract window tool kit It supports classes to create GUI It supports classes to create GUI

Application Program Interface  java.txt – supports text elements  java.math – supports mathematical functions  java.util – has utility classes like Date, Time, StringTokenizer

What is a wrapper class?  Wrapper classes are part of java’s standard library java.lang  These convert primitive data type in an object.  That is why primitive data type in lower case  Wrapper class name begins with upper case.

What is a wrapper class?  Wrapper class wraps a value of primitive type in an object  All the methods of the wrapper classes are static.  The Wrapper class does not contain constructors.  Once a value is assigned to a wrapper class instance it can not be changed, anymore.  These objects can use methods of these wrapper class. –E.g. parseInt is a method of class Integer

Important structure of wrapper classes in Java.lang Object CharacterNumber ByteIntegerShortLong FloatDouble VoidBoolean

Syntactical difference  Primitive data type –int a =5;  Wrapper class –Integer a = new Integer (5);  Converting primitive type to object –int aa =5; –Integer a = new Integer (aa);

Some Java Acronyms  jvm – java virtual machine  Name of java interpreter  jar – java archive files  Directly executable files from any environment  jdbc – java data base connectivity  Just the name of the feature  This feature of java makes it powerful programming medium on the net