Java Quick Syntax Reference(2nd) 无水印原版pdf

所需积分/C币:16 2018-03-13 15:04:21 1.44MB PDF
19
收藏 收藏
举报

Java Quick Syntax Reference(2nd) 英文无水印原版pdf 第2版 pdf所有页面使用FoxitReader、PDF-XChangeViewer、SumatraPDF和Firefox测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 查看此书详细信息请在美国亚马逊官网搜索此书
Java Quick Syntax Reference Mikael olsson Hammarland, Lansi-Suomi, finland ISBN-13(pbk):978-1-4842-3440-2 ISBN-13( electronic:978-1-4842-3441-9 htos:// doi. org/10.1007/978-1-4842-3441-9 Library of Congress Control Number: 2018932355 Copyright o 2018 by Mikael Olsson This work is subject to copyright All rights are reserved by the Publisher, whether the whole or part of the material is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation, broadcasting, reproduction on microfilms or in any other physical way, and transmission or information storage and retrieval, electronic adaptation computer software or by similar or dissimilar methodology now known or hereafter developed. Trademarked names, logos, and images may appear in this book. Rather than use a trademark symbol with every occurrence of a trademarked name, logo, or image we use the names, logo and images only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark The use in this publication of trade names, trademarks, service marks, and similar terms, even if they are not identified as such, is not to be taken as an expression of opinion as to whether or not they are subject to proprietary rights While the advice and information in this book are believed to be true and accurate at the date of publication, neither the authors nor the editors nor the publisher can accept any legal responsibility for any errors or omissions that may be made. The publisher makes no warranty, express or implied, with respect to the material contained herein Managing Director, Apress Media LLC: Welmoed Spahr Acquisitions Editor Steve anglin Development Editor: Matthew Moodie Coordinating editor: Mark Powers Copyeditor: Corbin Collins Cover designed by eStudio calamar CoverimagedesignedbyFreepik(www.freepik.com Distributed to the book trade worldwide by Springer Science+Business Media New York, 233 Spring Street, 6th Floor, New York, NY 10013. Phone 1-800-SPRINGER, fax(201)348-4505 e-mailorders-ny@springer-sbm.com,orvisitwww.springeronline.comApressMediaLlcisa California LLC and the sole member (owner) is Springer Science +Business Media Finance Inc (SSBM Finance Inc). SSBM Finance Inc is a Delaware corporation Forinformationontranslations,pleasee-maileditorial@apress.com;forreprint,paperback,or audiorightspleaseemailbookpermissions@springernature.com Apress titles may be purchased in bulk for academic, corporate, or promotional use eBook versions and licenses are also available for most titles. For more information reference our print andebooKbulksaleswebpageathttp://www.apress.com/bulk-sales Any source code or other supplementary material referenced by the author in this book is available toreadersonGithubviathebooksproductpagelocatedatwww.apress.com/9781484234402 Formoredetailedinformationpleasevisitwww.apress.com/source-code Printed on acid-free paper Table of contents About the author XI About the technical reviewer xii Introduction Chapter 1: Hello World ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ Installing Creating a project......,……1 Hello world 2 Code hints…4 Chapter 2: Compile and Run m mmm.5 Running from the Ide Running from a console window.amaammmmmmmsanommmmn5 Comments 6 Chapter 3: Variables mm B RB RI RB RBRRBBEIID Data types… Declaring variables 8 Assigning variables…….........8 Using variables 8 Integer types…… Floating-point types Char type 10 TABLE OF CONTENTS Boolean type.m...n.eenonnonon 10 Variable scope Anonymous block…,,… 11 Chapter4:0 perators…,… 13 Arithmetic operators 13 Assignment operators Combined assignment operators Increment and decrement operators 14 Comparison operators…......………15 ogical operators 15 Bitwise operators 16 Operator precedence. 16 Chapter 5: String ■■■■■■■■■■■■口■■口■■■■ 19 Combining strings 19 Escape characters 20 String compare 21 StringBuffer class 21 Chapter6: Arrays,,,,…,,,,,,,,,,1,23 Array declaration 23 Array allocation 23 Array assignment… 24 Multi-dimensional arrays …24 ArrayList class 25 TABLE OF CONTENTS Chapter 7: Conditionals ■■■■■■■■■■■■■■■■■■■■■口■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■口■■■■■口■■■ If statement 27 Switch statement Ternary operator. Chapter 8: Loops.ar 31 While loop Do while loop 32 For loop ……32 For- each loop… 33 Break and continue ……33 Labeled block …34 Chapter 9: Methods mmanmmammammammamaamaaammmmmmmamn35 Defining methods . Calling methods…… 36 Method parameters. Return statement 37 Method overloading…,,, 38 Passing arguments. Chapter 10: Classman ■■■■■■■■■■■口■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■a■ object creation Accessing object members 42 Constructor… 42 This keyword 43 Constructor overloading Constructor chaining 45 TABLE OF CONTENTS Initial field values 45 Default constructor Null DDDDDDDBBDBDBBDBBDBBDBDBDBDBDBDBDDDDDDDDDDBDBBDB Default values 664 Garbage collector…..,.,.,.,.,.,.,.,.,.,… Chapter11: Static…,…,m,,,m Accessing static members 50 Static methods…50 Static fields…51 Static initialization blocks Instance initialization blocks 52 Chapter 12: Inheritance 53 Object .54 casting 54 Downcasting… 54 Instanceof operator.aee....e.nd 55 Chapter13:0 verriding…,,,,,,,,,…,,,,,,…57 0 verriding members… 57 Override annotation 58 Hiding members Preventing method inheritance 60 Accessing overridden methods……60 Calling parent constructor TABLE OF CONTENTS Chapter 14: Packages and Import g61 ■■■■日■■■■■■■■■■■■■■■■■■■■■■■日■■■■■■■■■■■■■■口■■口■■口■ Accessing packages 62 Chapter15: Access levels,,,,,,,,,…,,,,……63 Private access… 63 Package-private access Protected access…65 Public access 65 Top-level access.eeeeeeetetetet. 66 Nested class access 66 Access level guideline …67 Chapter 16: Constants mmmmmmBmmaaamammmamna 69 Local constants 69 Constant fields 69 Constant method parameters…… 70 Compile-time and runtime constants......70 Constant guideline Chapter17: nterface… 73 Interface members 73 Interface example… 74 Functionality interface Class interface…76 Interface classes Interface methods TABLE OF CONTENTS Chapter 18: Abstract. ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■口■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 81 Abstract class example .aeeeeeaoenoeaonononoaaanan81 Abstract classes and interfaces Chapter 19: Enum RBBBBBRRRRRRRRRRARRBBBRRRREEIEE ■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 85 Enum class 86 Chapter 20: Exception Handling am aaaaaa 89 Try-catch Catch block 90 Finally block…… 91 hrowing exceptions…… 93 Checked and unchecked exceptions………………… 93 Exception hierarch 94 Chapter 21: Boxing and Unboxing m m mamm mmm 95 Autoboxing and autounboxing Primitive and wrapper guideline ,96 Chapter 22: Generics manama EERmIIRRIRIE 97 Generic classes…97 Generic methods 98 Calling generic methods Generic interfaces 99 Generic type parameters......................... 100 Generic variable usages. Bounded type parameters. Generics and object . TABLE OF CONTENTS Chapter 23: Lambda Expressions mmaammmmmm105 Lambda objects.m...... 105 Lambda parameters 107 Index…09

...展开详情
试读 115P Java Quick Syntax Reference(2nd) 无水印原版pdf
立即下载
限时抽奖 低至0.43元/次
身份认证后 购VIP低至7折
一个资源只可评论一次,评论内容不能少于5个字
您会向同学/朋友/同事推荐我们的CSDN下载吗?
谢谢参与!您的真实评价是我们改进的动力~
  • 至尊王者

关注 私信
上传资源赚钱or赚积分
最新推荐
Java Quick Syntax Reference(2nd) 无水印原版pdf 16积分/C币 立即下载
1/115
Java Quick Syntax Reference(2nd) 无水印原版pdf第1页
Java Quick Syntax Reference(2nd) 无水印原版pdf第2页
Java Quick Syntax Reference(2nd) 无水印原版pdf第3页
Java Quick Syntax Reference(2nd) 无水印原版pdf第4页
Java Quick Syntax Reference(2nd) 无水印原版pdf第5页
Java Quick Syntax Reference(2nd) 无水印原版pdf第6页
Java Quick Syntax Reference(2nd) 无水印原版pdf第7页
Java Quick Syntax Reference(2nd) 无水印原版pdf第8页
Java Quick Syntax Reference(2nd) 无水印原版pdf第9页
Java Quick Syntax Reference(2nd) 无水印原版pdf第10页
Java Quick Syntax Reference(2nd) 无水印原版pdf第11页
Java Quick Syntax Reference(2nd) 无水印原版pdf第12页
Java Quick Syntax Reference(2nd) 无水印原版pdf第13页
Java Quick Syntax Reference(2nd) 无水印原版pdf第14页
Java Quick Syntax Reference(2nd) 无水印原版pdf第15页
Java Quick Syntax Reference(2nd) 无水印原版pdf第16页
Java Quick Syntax Reference(2nd) 无水印原版pdf第17页
Java Quick Syntax Reference(2nd) 无水印原版pdf第18页
Java Quick Syntax Reference(2nd) 无水印原版pdf第19页
Java Quick Syntax Reference(2nd) 无水印原版pdf第20页

试读结束, 可继续阅读

16积分/C币 立即下载