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

    PRG 421 – JAVA PROGRAMMING II – Complete Class Includes All DQs, Individual and Team Assignments – UOP Latest…

    • 693 Words
    • 4 Pages
    Satisfactory Essays
  • 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
  • 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
  • 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
  • Good Essays

    Week 1 Homework

    • 843 Words
    • 5 Pages

    2. What does a compiler do? What kinds of errors are reported by a compiler?…

    • 843 Words
    • 5 Pages
    Good Essays
  • Better Essays

    Object-oriented Languages: mainly features as same as the imperative languages because these languages are evolved from imperative languages. The specialty rests on the object-oriented concepts in these languages. Widely used for every kind of software programming and the most commonly used languages are considered to these languages. Java, C#, C++ and Python are few examples.…

    • 1672 Words
    • 7 Pages
    Better 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
  • Good Essays

    Individual Project 3

    • 1026 Words
    • 5 Pages

    For this project I have chosen to do the first problem about C#. Since I’m not that familiar with the C# program, I first would like to explain what C# program is. C# program is a programming language that is very similar to both Java and C++ in many respects. But for this project I’m only going to give a couple of the similarities that Java, C++, and C# have with each other.…

    • 1026 Words
    • 5 Pages
    Good 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
  • Satisfactory Essays

    gd topic

    • 12704 Words
    • 42 Pages

    Core Java Java Basics Advanced Java UNIX Unix File Management Unix Memory Management Unix Process Managemnt C Interview Questions…

    • 12704 Words
    • 42 Pages
    Satisfactory 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