Preview

Sri Lanka News

Satisfactory Essays
Open Document
Open Document
897 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Sri Lanka News
HSIT 2130
Fundamentals of Programming

By Budditha Hettige
Department of Statistics and Computer Science
1

Overview
• • • • • • • • • Exercises (Previous Lesson) The JAVA Programming Languages Java Virtual Machine Characteristics What is a class? JAVA Standards JAVA Keywords How Install JAVA Sample Java Program
2

Exercises
Draw a flowchart for the following
1. 2. 3. Enter two number from key bard and print average Enter three number and find the maximum number Process of the ATM machine

3

JAVA
• Is a programming language created by James Gosling from Sun Microsystems in 1991 • Is a general-purpose, class-based, objectoriented Programming language • is intended to let application developers “write once, run anywhere.” • Current version (JDK) 7u21 • URL : http://www.oracle.com/

4

Java cont…
• Java programming language consists
– Java compiler: Java compiler translates Java coding into byte-code – Java virtual machine(JVM) Java virtual machine interprets this byte-code and runs the program – Java class libraries Java Class Library is a set of dynamically loadable libraries that Java applications can call at run time
5

Java Virtual Machine (JVM) Architecture
JAVA Source File (.java) Java Virtual Machine Byte code Verifier Memory Manager JAVA Bite code (.class)

Java Compiler

Interpreter

Java API

6

JAVA Vs C++
JAVA Source File (.java)

C++ Source File (.cpp)

Java Compiler

C++ Compiler

JAVA Bite code (.class)

Executable program (.exe) Operating system can directly execute

Java VM

JAVA VM can directly execute

7

Characteristics
Java has the following properties • Platform independent • Object-orientated programming language • Strongly-typed programming language • Interpreted and compiled language • Automatic memory management
8

Platform independent
• Can Run on any Platform
– Windows – Linux – MaC OS
JAVA Source File (.java)

Java Compiler

JAVA Bite code (.class)

Java VM

9

Object-orientated programming language
• Object-oriented programming

You May Also Find These Documents Helpful

  • Satisfactory Essays

    1990 java was developed by James gosling it turned out to be one of the more popular programming languages.…

    • 388 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Student will learn how to write Java programs to perform simple calculations, they will use Scanner class to obtain input from the console, they will know how to use identifiers to name variables, constants, methods, and classes. The use of constants , Java primitive…

    • 2338 Words
    • 10 Pages
    Powerful Essays
  • Satisfactory Essays

    Based on the Greiner (2009) article, define an applet and distinguish one from a servlet.…

    • 693 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Homework Week 2

    • 743 Words
    • 3 Pages

    Machine code it the language that the computer understands. High level languages are better because they are easier to understand and work with.…

    • 743 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Some similarities in these programs are that there are specific words you cannot use in each language. These words are generally reserved for some other part of the language and if the is not some kind of distinction between the words this will cause an error. Though these languages have minor similarities they differ in the same way, some are case sensitive while others are not. They also say that most variables should begin with a letter but in two of these programs they can begin with an underscore and in Java you can use a dollar sign as well. Another key difference is the length of the variable name, in Visual Basic you are limited to a length of 255 characters while the other two have no restrictions on length. So for each language there are minor similarities and differences but in order to program in any of these languages you must know these rules in order to prevent errors from…

    • 878 Words
    • 4 Pages
    Good Essays
  • Powerful Essays

    Pt1420 Unit 1 Assignment 2

    • 1305 Words
    • 6 Pages

    Hosch, L., Liesandthem, G., Luebring, J.E., Pallardy, R., Young, G. (2014). Java. In Encyclopedia Britannica.…

    • 1305 Words
    • 6 Pages
    Powerful Essays
  • Good Essays

    Bank Of America

    • 505 Words
    • 3 Pages

    2. List the sequential steps required in a typical ATM transaction, such as drawing out cash or transferring funds from one account to another, and briefly explain why each of these steps is necessary. Use a table to organize your response and do not overlook steps in the process that are performed either by the ATM system or by information systems housed within the Bank’s centralized data center.…

    • 505 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    Chapter 1 Chapter 2 Chapter 3 Chapter 4 Chapter 5 Chapter 6 Chapter 7 Chapter 8 Chapter 9 Chapter 10 Chapter 11 Chapter 12 Chapter 13 Chapter 14 Chapter 15 Chapter 16 Chapter 17 Chapter 18 Chapter 19 Chapter 20 Chapter 21 Chapter 22 Chapter 23 Chapter 24 Chapter 25 Chapter 26 Chapter 27 An Introduction to Hardware, Software, and the Internet An Introduction to Software Development Objects and Classes Algorithms Java Syntax and Style Data Types, Variables, and Arithmetic Boolean Expressions and if-else Statements Iterative Statements: while, for, do–while Implementing Classes and Using Objects Strings Class Hierarchies and Interfaces Arrays…

    • 3908 Words
    • 16 Pages
    Powerful Essays
  • Satisfactory Essays

    This course introduces students to object-oriented programming. It covers object-oriented tools for system analysis, design and development. The course teaches the significance of object-oriented programming, the keywords and constructs of the Java programming language, and the steps required to create simple Java technology programs.…

    • 414 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Prg420 Syllabus

    • 1691 Words
    • 7 Pages

    Horton, I. (2005). Ivor Horton’s Beginning Java 2, JDK (5th ed.). Indianapolis, IN: Wiley Publishing.…

    • 1691 Words
    • 7 Pages
    Satisfactory Essays
  • Powerful Essays

    The following information will introduce general knowledge in basic programming concepts. It shall discuss basic types of computer programming languages as-well-as program development. There are three basic types of computer programming languages that will be discussed in a simple and easy to understand manner. We shall also describe the program development cycle and discuss why it is important to use a structured and organized process to create a computer programming language.…

    • 1318 Words
    • 6 Pages
    Powerful Essays
  • Good Essays

    Week 1 Homework

    • 843 Words
    • 5 Pages

    Machine code is the language which the computer hardware understands and executes. Instructions in a high-level language are closer to a natural language, such as English and therefore are easier to understand and learn than machine language.…

    • 843 Words
    • 5 Pages
    Good Essays
  • Better Essays

    Sun Microsystems Case

    • 1042 Words
    • 5 Pages

    - Java Platform: Java is one of the core products of Sun and is very successful.…

    • 1042 Words
    • 5 Pages
    Better Essays
  • Satisfactory Essays

    OCJA exam prep

    • 5816 Words
    • 24 Pages

    2. Which statement represents a valid statement that will allow for the inclusion of classes from the java.util package?…

    • 5816 Words
    • 24 Pages
    Satisfactory Essays
  • Satisfactory Essays

    bluej conclusion

    • 1557 Words
    • 7 Pages

    BlueJ was developed to support the learning and teaching of object-oriented programming, and its design differs from other development environments as a result. The main screen graphically shows the class structure of an application under development (in an UML-like diagram), and objects can be interactively created and tested.…

    • 1557 Words
    • 7 Pages
    Satisfactory Essays

Related Topics