Preview

Fwfe

Satisfactory Essays
Open Document
Open Document
60596 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Fwfe
The Java® Language Specification
Java SE 7 Edition
James Gosling Bill Joy Guy Steele Gilad Bracha Alex Buckley

2013-02-28

Specification: JSR-000901 Java® Language Specification ("Specification") Version: 7 Status: Final Release Release: July 2011 Copyright © 1997, 2013, Oracle America, Inc. and/or its affiliates. All rights reserved. 500 Oracle Parkway, Redwood City, California 94065, U.S.A. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners. The Specification provided herein is provided to you only under the Limited License Grant included herein as Appendix A. Please see Appendix A, Limited License Grant.

Table of Contents
Preface to the Java SE 7 Edition xv Preface to the Third Edition xvii Preface to the Second Edition xxi Preface to the First Edition xxiii

1 Introduction 1
1.1 1.2 1.3 1.4 1.5 Organization of the Specification 2 Example Programs 5 Notation 6 Relationship to Predefined Classes and Interfaces 6 References 7

2 Grammars 9
2.1 2.2 2.3 2.4 Context-Free Grammars 9 The Lexical Grammar 9 The Syntactic Grammar 10 Grammar Notation 10

3 Lexical Structure 15
3.1 3.2 3.3 3.4 3.5 3.6 3.7 3.8 3.9 3.10 Unicode 15 Lexical Translations 16 Unicode Escapes 17 Line Terminators 18 Input Elements and Tokens 19 White Space 21 Comments 21 Identifiers 23 Keywords 24 Literals 25 3.10.1 Integer Literals 25 3.10.2 Floating-Point Literals 32 3.10.3 Boolean Literals 35 3.10.4 Character Literals 35 3.10.5 String Literals 36 3.10.6 Escape Sequences for Character and String Literals 38

iii

The Java® Language Specification

3.11 3.12

3.10.7 The Null Literal 39 Separators 40 Operators 40

4 Types, Values, and Variables 41
4.1 4.2 The Kinds of Types and Values 41 Primitive Types and Values 42 4.2.1 Integral Types and Values 43 4.2.2 Integer Operations 43 4.2.3 Floating-Point Types, Formats, and Values 45 4.2.4 Floating-Point Operations 48 4.2.5 The boolean Type

You May Also Find These Documents Helpful

  • Powerful Essays

    here is for the specter of a quiz to always be hanging over the student where he knows he…

    • 83928 Words
    • 594 Pages
    Powerful Essays
  • Powerful Essays

    JDA Software Group, Inc. (2005, January 2005). JDA PORTFOLIO® FACT SHEET. Retrieved 9 October 2005, http://www.jda.com/file_bin/collateral/JDA_Portfolio_Jan_05.pdf…

    • 2171 Words
    • 9 Pages
    Powerful Essays
  • Powerful Essays

    Copyright © 2011 by Maria Litvin and Gary Litvin All rights reserved. Teachers who purchased Java Methods are allowed to make one copy. However, we ask you not to do this to help keep answers and solutions confidential. No part of this material may be reproduced for any other purpose without a prior written permission of the authors.…

    • 3908 Words
    • 16 Pages
    Powerful Essays
  • Better Essays

    Venit, S., & Drake, E. (2011). Prelude to Programming Concepts and Design (5th ed.). Boston, MA: Addison-Wesley.…

    • 1800 Words
    • 6 Pages
    Better Essays
  • Powerful Essays

    EAS230Syllabus

    • 1748 Words
    • 8 Pages

    C++ programming: editing, compiling, user I/O, variables (ints, doubles, char, strings, booleans), loops, decisions, functions, pointers, arrays, tables, databases, sorting.…

    • 1748 Words
    • 8 Pages
    Powerful 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
  • Satisfactory Essays

    Lab 3 Student

    • 1264 Words
    • 7 Pages

    This lab accompanies Chapter 2 (pp. 56-68) of Starting Out with Programming Logic & Design.…

    • 1264 Words
    • 7 Pages
    Satisfactory 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
  • Better Essays

    Venit, S., & Drake, E. (2009). Prelude to programming: Concepts & design (4th ed.). Boston, MA: Addison-Wesley.…

    • 890 Words
    • 4 Pages
    Better 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
  • Satisfactory Essays

    Deitel, H.M., & Deitel, P.J. (2002). Java: How to program (6th ed.). Upper Saddle River, NJ: Pearson…

    • 253 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    mr angola

    • 329 Words
    • 2 Pages

    Write a Java program to perform basic arithmetic operations which are multiplication and division of two numbers. Numbers are assumed to be integers and will be entered by the user…

    • 329 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Cloud Testing

    • 1274 Words
    • 6 Pages

    James A. Whittaker, Florida Institute of Technology IEEE Software 17(1), pp. 70-79, Jan-Feb 2000 Avital Braner Basic Seminar of Software Engineering Hebrew University 2009…

    • 1274 Words
    • 6 Pages
    Powerful Essays
  • Better Essays

    Data Structures

    • 23014 Words
    • 93 Pages

    1 Introduction 1.1 What this book is, and what it isn’t . . . 1.2 Assumed knowledge . . . . . . . . . . . . 1.2.1 Big Oh notation . . . . . . . . . . 1.2.2 Imperative programming language 1.2.3 Object oriented concepts . . . . . 1.3 Pseudocode . . . . . . . . . . . . . . . . . 1.4 Tips for working through the examples . . 1.5 Book outline . . . . . . . . . . . . . . . . 1.6 Testing . . . . . . . . . . . . . . . . . . . 1.7 Where can I get the code? . . . . . . . . . 1.8 Final messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1 1 1 3 4 4 6 6 7 7 7…

    • 23014 Words
    • 93 Pages
    Better Essays
  • Satisfactory Essays

    fefefe

    • 388 Words
    • 2 Pages

    The example essay is one of the most basic essays in academic writing, but can be extremely difficult if you've never written one or do not know what to write about. Example essays focus on one main idea which you prove with several specific, convincing examples. If you're stuck on how to write an example essay, you can follow a few simple steps to dig yourself out of the rut and write an example essay that you can be proud of.…

    • 388 Words
    • 2 Pages
    Satisfactory Essays

Related Topics