[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-detail-137735-en":3,"doc-seo-137735-105":30,"detail-sidebar-cat-0-en-105":92},{"code":4,"msg":5,"data":6},0,"success",{"doc_id":7,"user_id":8,"nickname":9,"user_avatar":10,"doc_module":4,"category_id":11,"category_name":12,"doc_title":13,"doc_description":14,"doc_content":15,"file_id":16,"file_url":17,"file_type":18,"file_size":19,"view_count":20,"is_deleted":4,"is_public":20,"is_downloadable":20,"audit_status":20,"page_count":21,"language":22,"language_code":23,"site_id":24,"html_lang":23,"table_of_contents":25,"faqs":26,"seo_title":27,"seo_description":14,"update_tm":28,"read_time":29},137735,3848291630094,"Emma Wilson","https://eur-avatar.wpscdn.com/davatar_085a072bc5b1113ac321206ff7593b45",6,"Technology","The Java Language Specification - Java SE 8 Edition - Final Release","Java SE 8 Edition of the Java Language Specification defines the formal rules of the Java programming language. It specifies grammar, lexical structure, and tokenization, covering Unicode, identifiers, keywords, literals, operators, and comments. It details language constructs for types, values, variables, conversions, naming and scoping, access control, packages, and class-related declarations and members. The document provides a precise basis for implementing compilers, tools, and language-aware systems that adhere to the specification.","The Java® Language  \nSpecification Java SE 8 Edition  \nJames Gosling Bill Joy Guy Steele Gilad Bracha Alex Buckley  \n2014-03-03  \nSpecification: JSR-337 Java® SE 8 Release Contents (\"Specification\")  \nVersion: 8  \nStatus: Final Release  \nRelease: March 2014  \nCopyright © 1997, 2014, Oracle America, Inc. and/or its affiliates. All rights reserved.  \n500 Oracle Parkway, Redwood City, California 94065, U.S.A.  \nOracle and Java are registered trademarks of Oracle and/or its affiliates. Other names maybe trademarks oftheir respective owners.  \nThe 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.  \nTo Maurizio, with deepest thanks.  \nTable of Contents  \nPreface to the Java SE 8 Edition xix  \n1 Introduction 1  \n1.1 Organization of the Specification 2  \n1.2 Example Programs 6  \n1.3 Notation 6  \n1.4 Relationship to Predefined Classes and Interfaces 7  \n1.5 Feedback 7  \n1.6 References 7  \n2 Grammars 9  \n2.1 Context-Free Grammars 9  \n2.2 The Lexical Grammar 9  \n2.3 The Syntactic Grammar 10  \n2.4 Grammar Notation 10  \n3 Lexical Structure 15  \n3.1 Unicode 15  \n3.2 Lexical Translations 16  \n3.3 Unicode Escapes 17  \n3.4 Line Terminators 19  \n3.5 Input Elements and Tokens 19  \n3.6 White Space 20  \n3.7 Comments 21  \n3.8 Identifiers 22  \n3.9 Keywords 24  \n3.10 Literals 24  \n3.10.1 Integer Literals 25  \n3.10.2 Floating-Point Literals 31  \n3.10.3 Boolean Literals 34  \n3.10.4 Character Literals 34  \n3.10.5 String Literals 35  \n3.10.6 Escape Sequences for Character and String Literals 37  \n3.10.7 The Null Literal 38  \n3.11 Separators 38  \n3.12 Operators 39  \nThe Java® Language Specification  \n4 Types, Values, and Variables 41  \n4.1 The Kinds of Types and Values 41  \n4.2 Primitive Types and Values 42  \n4.2.1 Integral Types and Values 43  \n4.2.2 Integer Operations 43  \n4.2.3 Floating-Point Types, Formats, and Values 45  \n4.2.4 Floating-Point Operations 48  \n4.2.5 The boolean Type and boolean Values 51  \n4.3 Reference Types and Values 52  \n4.3.1 Objects 53  \n4.3.2 The Class Object 56  \n4.3.3 The Class String 56  \n4.3.4 When Reference Types Are the Same 57  \n4.4 Type Variables 57  \n4.5 Parameterized Types 59  \n4.5.1 Type Arguments of Parameterized Types 60  \n4.5.2 Members and Constructors of Parameterized Types 63  \n4.6 Type Erasure 64  \n4.7 Reifiable Types 65  \n4.8 Raw Types 66  \n4.9 Intersection Types 70  \n4.10 Subtyping 71  \n4.10.1 Subtyping among Primitive Types 71  \n4.10.2 Subtyping among Class and Interface Types 72  \n4.10.3 Subtyping among Array Types 73  \n4.10.4 Least Upper Bound 73  \n4.11 Where Types Are Used 76  \n4.12 Variables 80  \n4.12.1 Variables of Primitive Type 81  \n4.12.2 Variables of Reference Type 81  \n4.12.3 Kinds of Variables 83  \n4.12.4 final Variables 85  \n4.12.5 Initial Values of Variables 87  \n4.12.6 Types, Classes, and Interfaces 88  \n5 Conversions and Contexts 91  \n5.1 Kinds of Conversion 94  \n5.1.1 Identity Conversion 94  \n5.1.2 Widening Primitive Conversion 94  \n5.1.3 Narrowing Primitive Conversion 96  \n5.1.4 Widening and Narrowing Primitive Conversion 99  \n5.1.5 Widening Reference Conversion 99  \n5.1.6 Narrowing Reference Conversion 99  \n5.1.7 Boxing Conversion 100  \n5.1.8 Unboxing Conversion 102  \n5.1.9 Unchecked Conversion 103  \n5.1.10 Capture Conversion 103  \nThe Java® Language Specification  \n5.1.11 String Conversion 105  \n5.1.12 Forbidden Conversions 106  \n5.1.13 Value Set Conversion 106  \n5.2 Assignment Contexts 107  \n5.3 Invocation Contexts 112  \n5.4 String Contexts 114  \n5.5 Casting Contexts 114  \n5.5.1 Reference Type Casting 118  \n5.5.2 Checked Casts and Unchecked Casts 122  \n5.5.3 Checked Casts at Run Time 123  \n5.6 Numeric Contexts 125  \n5.6.1 Unary Numeric Promotion 125  \n5.6.2 Binary Numeric Promotion 126  \n6 Names 129  \n6.1 Declarations 130  \n6.2 Names and Identifiers 137  \n6.3 Scope of a Declaration 139  \n6.4 Shadowing and Obscuring 142  \n6.4.1 Shadowing 144  \n6.4.2 Obscuring 147  \n6.5 Determinin","cbCaij7x5irWnlqX","https://ap.wps.com/l/cbCaij7x5irWnlqX","pdf",3938266,1,780,"English","en",105,"# Preface to the Java SE 8 Edition\n## Organization of the Specification\n## Example Programs\n## Notation\n## Relationship to Predefined Classes and Interfaces\n## Feedback\n# Introduction\n## Organization of the Specification\n## Example Programs\n## Notation\n## Relationship to Predefined Classes and Interfaces\n## Feedback\n# Grammars\n## Context-Free Grammars\n## The Lexical Grammar\n## The Syntactic Grammar\n## Grammar Notation\n# Lexical Structure\n## Unicode\n## Lexical Translations\n## Unicode Escapes\n## Line Terminators\n## Input Elements and Tokens\n## White Space\n## Comments\n## Identifiers\n## Keywords\n## Literals\n## Separators\n## Operators\n# Types, Values, and Variables\n## Kinds of Types and Values\n## Primitive Types and Values\n## Reference Types and Values\n## Type Variables\n## Parameterized Types\n## Type Erasure\n## Reifiable Types\n## Raw Types\n## Intersection Types\n## Subtyping\n## Where Types Are Used\n## Variables","[{\"question\":\"What does the Java SE 8 Edition specification cover?\",\"answer\":\"It covers the Java language’s formal definition, including grammars, lexical structure, types and values, conversions, names and scopes, access control, packages, and class declarations and members.\"},{\"question\":\"What are the main parts of the specification related to syntax?\",\"answer\":\"It defines grammars (context-free and lexical/syntactic grammar) and details lexical structure such as Unicode handling, identifiers, keywords, literals, separators, and operators.\"},{\"question\":\"How does the specification treat types and conversions in Java?\",\"answer\":\"It describes kinds of types and values, including primitive and reference types, and explains conversion rules such as identity, widening/narrowing, boxing/unboxing, and casting contexts.\"}]","The Java Language Specification - Java SE 8 Edition - Final Release | PDF",1787439727,1966,{"code":4,"msg":31,"data":32},"ok",{"site_id":24,"language":23,"slug":33,"title":13,"keywords":34,"description":14,"schema_data":35,"social_meta":87,"head_meta":89,"extra_data":91,"updated_unix":28},"the-java-language-specification-java-se-8-edition-final-release","",{"@graph":36,"@context":86},[37,54,69],{"@type":38,"itemListElement":39},"BreadcrumbList",[40,44,48,51],{"item":41,"name":42,"@type":43,"position":20},"https://docshare.wps.com","Home","ListItem",{"item":45,"name":46,"@type":43,"position":47},"https://docshare.wps.com/document/","Document",2,{"item":49,"name":12,"@type":43,"position":50},"https://docshare.wps.com/document/technology/",3,{"item":52,"name":13,"@type":43,"position":53},"https://docshare.wps.com/document/the-java-language-specification-java-se-8-edition-final-release/137735/",4,{"url":52,"name":13,"@type":55,"author":56,"headline":13,"publisher":58,"fileFormat":61,"inLanguage":23,"description":14,"dateModified":62,"datePublished":63,"encodingFormat":61,"isAccessibleForFree":64,"interactionStatistic":65},"DigitalDocument",{"name":9,"@type":57},"Person",{"url":41,"name":59,"@type":60},"DocShare","Organization","application/pdf","2026-08-29","2026-08-22",true,{"@type":66,"interactionType":67,"userInteractionCount":20},"InteractionCounter",{"@type":68},"ViewAction",{"@type":70,"mainEntity":71},"FAQPage",[72,78,82],{"name":73,"@type":74,"acceptedAnswer":75},"What does the Java SE 8 Edition specification cover?","Question",{"text":76,"@type":77},"It covers the Java language’s formal definition, including grammars, lexical structure, types and values, conversions, names and scopes, access control, packages, and class declarations and members.","Answer",{"name":79,"@type":74,"acceptedAnswer":80},"What are the main parts of the specification related to syntax?",{"text":81,"@type":77},"It defines grammars (context-free and lexical/syntactic grammar) and details lexical structure such as Unicode handling, identifiers, keywords, literals, separators, and operators.",{"name":83,"@type":74,"acceptedAnswer":84},"How does the specification treat types and conversions in Java?",{"text":85,"@type":77},"It describes kinds of types and values, including primitive and reference types, and explains conversion rules such as identity, widening/narrowing, boxing/unboxing, and casting contexts.","https://schema.org",{"og:url":52,"og:type":88,"og:title":13,"og:site_name":59,"og:description":14},"article",{"robots":90,"canonical":52},"index,follow",{"doc_id":7,"site_id":24},{"code":4,"msg":5,"data":93},[94,98,102,106,111,114,119,124,129,132,136],{"id":20,"doc_module":4,"doc_module_name":46,"category_name":95,"show_sort_weight":96,"slug":97},"Story & Novel",90,"story-novel",{"id":47,"doc_module":4,"doc_module_name":46,"category_name":99,"show_sort_weight":100,"slug":101},"Literature",80,"literature",{"id":53,"doc_module":4,"doc_module_name":46,"category_name":103,"show_sort_weight":104,"slug":105},"Exam",70,"exam",{"id":107,"doc_module":4,"doc_module_name":46,"category_name":108,"show_sort_weight":109,"slug":110},5,"Comic",60,"comic",{"id":11,"doc_module":4,"doc_module_name":46,"category_name":12,"show_sort_weight":112,"slug":113},50,"technology",{"id":115,"doc_module":4,"doc_module_name":46,"category_name":116,"show_sort_weight":117,"slug":118},7,"Healthcare",40,"healthcare",{"id":120,"doc_module":4,"doc_module_name":46,"category_name":121,"show_sort_weight":122,"slug":123},8,"Research & Report",30,"research-report",{"id":125,"doc_module":4,"doc_module_name":46,"category_name":126,"show_sort_weight":127,"slug":128},9,"Religion & Spirituality",20,"religion-spirituality",{"id":127,"doc_module":4,"doc_module_name":46,"category_name":130,"show_sort_weight":127,"slug":131},"World Cup","world-cup",{"id":133,"doc_module":4,"doc_module_name":46,"category_name":134,"show_sort_weight":133,"slug":135},10,"Lifestyle","lifestyle",{"id":137,"doc_module":4,"doc_module_name":46,"category_name":138,"show_sort_weight":107,"slug":139},19,"General","general"]