Preview

Java Programming

Good Essays
Open Document
Open Document
1974 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Java Programming
Introduction
Java was developed by a team led by James Gosling at Sun Microsystems. Originally called Oak, it was designed in 1991 for use in embedded consumer electronic appliances. In 1995, renamed Java, it was redesigned for developing Internet applications.
Java is a full-featured, general-purpose programming language that is capable of developing robust mission-critical applications. Today, it is used not only for Web programming, but also for developing standalone applications across platforms on servers, desktops, and mobile devices. It was used to develop the code to communicate with and control the robotic rover that rolled on Mars. Many companies that once considered Java to be more hype than substance are now using it to create distributed applications accessed by customers and partners across the Internet. For every new project being developed today, companies are asking how they can use Java to make their work easier.
The Java programming language is a high-level language that can be characterized by all the following buzzwords:
• Simple
• Object oriented
• Distributed
• Interpreted
• Robust
• Secure
• Architecture neutral
• Portable
• High performance
• Multithreaded
• Dynamic
A Simple Java Program
A Java program can be written in many ways.
Let us begin with a simple Java program that displays the message "Welcome to Java!" on the console. The program is shown in Listing 1.1.

Every Java program must have at least one class. A class is a construct that defines data and methods. Each class has a name. By convention, class names start with an uppercase letter. In this example, the class name is Welcome.
In order to run a class, the class must contain a method named main. The JVM executes the program by invoking the main method.
A method is a construct that contains statements. The main method in this program contains the System.out.println statement. This statement prints a message "Welcome to Java!" to the console.
Creating, Compiling,

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

    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
  • 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
  • Good Essays

    Phase 2 Db

    • 390 Words
    • 2 Pages

    Java was created in 1991 by James Gosling. He recruited a group of engineers to develop a new programming language targeting consumer devices. The language was given the name “Oak”. It was later discovered the original name had been taken by another company for their programming project which resulted in Oak being renamed to Java. The Java group developed a language that would share similar characteristics with C languages but fewer bugs, more versatility, hardware independence, and reduced development times.…

    • 390 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Compter Science

    • 819 Words
    • 4 Pages

    Programming statements in a low-level language will be close to natural language and will use standard mathematical notation.…

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

    iv. Names for Java classes follow the same rules as for variable names. It is convention that each word in the class name begins with an upper case letter.…

    • 939 Words
    • 4 Pages
    Better Essays
  • Satisfactory Essays

    CSO Gaddis Java Chapter1 1

    • 2953 Words
    • 29 Pages

    Object-Oriented Programming © 2012 Pearson Education, Inc. All rights reserved. 1-2 Java History • 1991 - Green Team started by Sun Microsystems.…

    • 2953 Words
    • 29 Pages
    Satisfactory 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
  • Powerful Essays

    java answers

    • 15737 Words
    • 160 Pages

    Building Java Programs 2nd edition Exercise Solutions Chapter 1 Chapter 2 Chapter 3a Chapter 3 G Supplement Chapter 4 Chapter 5 Chapter 6 Chapter 7 Chapter 8 Chapter 9 Chapter 10 Chapter 11 Chapter 12 Chapter 15 Chapter 16 Chapter 17 Chapter 1 Exercise 1.1: Stewie public class Stewie { public static void main(String[] args) { System.out.println("//////////////////////"); System.out.println("|| Victory is mine! ||"); System.out.println("\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"); } } Exercise 1.2: Spikey public class Spikey { public static void main(String[] args) { System.out.println(" \\/"); System.out.println(" \\\\//"); System.out.println("\\\\\\///"); System.out.println("///\\\\\\"); System.out.println(" //\\\\"); System.out.println(" /\\"); } } Exercise 1.3: WellFormed public class WellFormed { public static void main(String[] args) { System.out.println("A well-formed Java program has"); System.out.println("a main method with { and }"); System.out.println("braces."); System.out.println(); System.out.println("A System.out.println statement"); System.out.println("has ( and ) and usually a");…

    • 15737 Words
    • 160 Pages
    Powerful Essays
  • Good Essays

    The program Pizza.java creates a class Pizza and defines methods to get and set variables in the class…

    • 436 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    Eclipse and Java for Total Beginners Tutorial Companion Document Eclipse And Java For Total Beginners Companion Tutorial Document By Mark Dexter Table of Contents Introduction........................................................................................................... ............................. 2 . Tutorial Target Audience.....................................................................................................................2…

    • 7556 Words
    • 31 Pages
    Satisfactory Essays
  • Good Essays

    Miss

    • 14651 Words
    • 59 Pages

    Focusing on Java platform, language, classes, objects, OO concepts & principles, data structures, algorithms, and pattern matching essentials…

    • 14651 Words
    • 59 Pages
    Good Essays
  • Powerful Essays

    The Interactions Pane .................................................................................................. 8 System.in .................................................................................................................. 9 Find and Replace ...................................................................................................... 11 4. Advanced Features ........................................................................................................ 14 JUnit Testing of Files ................................................................................................ 14 Generating JavaDoc Documentation ............................................................................. 15 The Debugger…

    • 8017 Words
    • 33 Pages
    Powerful Essays
  • Good Essays

    Jdbc Notes

    • 31946 Words
    • 128 Pages

    is Java. Java is two-dimensional: It’s a programming language and also a client/server system in which programs are automatically downloaded and run on the local machine (instead of the server machine). The wide embrace of Java has prompted its quick development. Java includes Java compilers, interpreters, tools, libraries, and integrated development environments (IDEs). Javasoft is leading the way in the development of libraries to extend the functionality and usability of Java as a serious platform for creating applications. One of these libraries, called Application Programming Interfaces (APIs), is the Java Database Connectivity API, or JDBC. Its primary purpose is to intimately tie connectivity to databases with the Java language. We’ll discuss the reasoning behind the JDBC in this chapter, as well as the design of the JDBC and its associated API. The Internet, or better yet, the technologies used in the operation of the Internet, are tied into the design of the JDBC. The other dominant design basis for the JDBC is the database standard known as SQL. Hence, the JDBC is a fusion of three discrete computer areas: Java, Internet technology, and SQL. With the growing implementation of these Internet technologies in “closed” networks, called intranets, the time was right for the development of Java-based enterprise APIs. In this book, intranet and Internet are both used to describe the software technology behind the network, such as the World Wide Web.…

    • 31946 Words
    • 128 Pages
    Good Essays