Learning Java: An Introduction to Real-World Programming with Java. 6 Ed

Оглавление⌄
CopyrightTable of ContentsPrefaceWho Should Read This BookNew DevelopmentsNew in This Edition (Java 15, 16, 17, 18, 19, 20, 21)Using This BookOnline ResourcesConventions Used in This BookUsing Code ExamplesO’Reilly Online LearningHow to Contact UsAcknowledgmentsChapter 1. A Modern LanguageEnter JavaJava’s OriginsGrowing UpA Virtual MachineJava Compared with Other LanguagesSafety of DesignSimplify, Simplify, Simplify…Type Safety and Method BindingIncremental DevelopmentDynamic Memory ManagementError HandlingThreadsScalabilitySafety of ImplementationThe VerifierClass LoadersApplication and User-Level SecurityA Java Road MapThe Past: Java 1.0–Java....20The Present: Java....21The FutureExercisesChapter 2. A First ApplicationJava Tools and EnvironmentInstalling the JDKInstalling IntelliJ IDEA and Creating a ProjectRunning the ProjectGrabbing the ExamplesHelloJavaClassesThe main() MethodClasses and ObjectsVariables and Class TypesHelloComponentInheritanceThe JComponent ClassRelationships and Finger-PointingPackages and ImportsThe paintComponent() MethodHelloJava2: The SequelInstance VariablesConstructorsEventsThe repaint() MethodInterfacesGoodbye and Hello AgainReview QuestionsCode ExercisesChapter 3. Tools of the TradeJDK EnvironmentThe Java VMRunning Java ApplicationsSystem PropertiesThe ClasspathCLASSPATH on Unix and macOSCLASSPATH on WindowsCLASSPATH WildcardsModulesThe Java CompilerTrying JavaJAR FilesThe jar UtilityTool Wrap-UpReview QuestionsCode ExercisesAdvanced Code ExercisesChapter 4. The Java LanguageText EncodingCommentsJavadoc CommentsAnnotationsVariables and ConstantsTypesPrimitive TypesReference TypesA Word About StringsStatements and ExpressionsStatementsExpressionsArraysArray TypesArray Creation and InitializationUsing ArraysAnonymous ArraysMultidimensional ArraysTypes and Classes and Arrays, Oh My!Review QuestionsCode ExercisesAdvanced ExercisesChapter 5. Objects in JavaClassesDeclaring and Instantiating ClassesAccessing Fields and MethodsStatic MembersMethodsLocal VariablesShadowingStatic MethodsInitializing Local VariablesArgument Passing and ReferencesWrappers for Primitive TypesMethod OverloadingObject CreationConstructorsWorking with Overloaded ConstructorsObject DestructionGarbage CollectionPackagesImporting ClassesCustom PackagesMember Visibility and AccessCompiling with PackagesAdvanced Class DesignSubclassing and InheritanceAbstract Classes and MethodsInterfacesInner ClassesAnonymous Inner ClassesOrganizing Content and Planning for FailureReview QuestionsCode ExercisesAdvanced ExercisesChapter 6. Error HandlingExceptionsExceptions and Error ClassesException HandlingBubbling UpStack TracesChecked and Unchecked ExceptionsThrowing Exceptionstry CreepThe finally Clausetry with ResourcesPerformance IssuesAssertionsEnabling and Disabling AssertionsUsing AssertionsReal-World ExceptionsReview QuestionsCode ExercisesAdvanced ExercisesChapter 7. Collections and GenericsCollectionsThe Collection InterfaceCollection TypesThe Map InterfaceType LimitationsContainers: Building a Better MousetrapCan Containers Be Fixed?Enter GenericsTalking About Types“There Is No Spoon”ErasureRaw TypesParameterized Type RelationshipsWhy Isn’t a List<Date> a List<Object>?CastsConverting Between Collections and ArraysIteratorA Closer Look: The sort() MethodApplication: Trees on the FieldUseful FeaturesReview QuestionsCode ExercisesAdvanced ExercisesChapter 8. Text and Core UtilitiesStringsConstructing StringsStrings from ThingsComparing StringsSearchingString Method SummaryThings from StringsParsing Primitive NumbersTokenizing TextRegular ExpressionsRegex NotationThe java.util.regex APIMath UtilitiesThe java.lang.Math ClassBig/Precise NumbersDates and TimesLocal Dates and TimesComparing and Manipulating Dates and TimesTime ZonesParsing and Formatting Dates and TimesFormatting Dates and TimesTimestampsOther Useful UtilitiesReview QuestionsCode ExercisesChapter 9. ThreadsIntroducing ThreadsThe Thread Class and the Runnable InterfaceControlling ThreadsRevisiting Animation with ThreadsDeath of a ThreadVirtual ThreadsPreview Feature TangentA Quick ComparisonSynchronizationSerializing Access to MethodsAccessing Class and Instance Variables from Multiple ThreadsScheduling and PriorityThread StateTime-SlicingPrioritiesThread PerformanceThe Cost of SynchronizationThread Resource ConsumptionVirtual Thread PerformanceConcurrency UtilitiesUpgrading Our Queue DemoStructured ConcurrencySo Many Threads to PullReview QuestionsCode ExercisesChapter 10. File Input and OutputStreamsBasic I/OCharacter StreamsStream WrappersThe java.io.File ClassFile StreamsRandomAccessFileThe New I/O File APIFileSystem and PathNIO File OperationsThe NIO PackageAsynchronous I/OPerformanceMapped and Locked FilesChannelsBuffersCharacter Encoders and DecodersFileChannelFileChannel Examplewrap() UpReview QuestionsCode ExercisesAdvanced ExercisesChapter 11. Functional Approaches in JavaFunctions....101LambdasLambda ExpressionsFunctional InterfacesMethod ReferencesPractical Lambdas: SortingStreamsSources and OperationsFiltering StreamsMapping StreamsFlatmapsReducing and CollectingUsing Lambdas DirectlyNext StepsReview QuestionsCode ExercisesAdvanced ExercisesChapter 12. Desktop ApplicationsButtons and Sliders and Text Fields, Oh My!Component HierarchiesModel View Controller ArchitectureLabels and ButtonsText ComponentsOther ComponentsContainers and LayoutsFrames and WindowsJPanelLayout ManagersEventsMouse EventsAction EventsChange EventsOther EventsThreading ConsiderationsSwingUtilities and Component UpdatesTimersBut Wait, There’s MoreMenusModals and Pop-UpsUser Interface and User ExperienceReview QuestionsCode ExercisesAdvanced ExercisesChapter 13. Network Programming in JavaUniform Resource LocatorsThe URL ClassStream DataGetting the Content as an ObjectManaging ConnectionsTalking to Web ApplicationsUsing the GET MethodUsing the POST MethodThe HttpURLConnectionSSL and Secure Web CommunicationsNetwork ProgrammingSocketsClients and ServersThe DateAtHost ClientA Distributed GameMuch More to ExploreReview QuestionsCode ExercisesAdvanced ExercisesAppendix A. Code Examples and IntelliJ IDEAGrabbing the Main Code ExamplesImporting the ExamplesAppendix B. Exercise AnswersChapter 1: A Modern LanguageChapter 2: A First ApplicationCode ExercisesChapter 3: Tools of the TradeCode ExercisesChapter 4: The Java LanguageCode ExercisesAdvanced ExercisesChapter 5: Objects in JavaCode ExercisesAdvanced ExercisesChapter 6: Error HandlingCode ExercisesAdvanced ExercisesChapter 7: Collections and GenericsCode ExercisesAdvanced ExercisesChapter 8: Text and Core UtilitiesCode ExercisesChapter 9: ThreadsCode ExercisesChapter 10: File Input and OutputCode ExercisesAdvanced ExercisesChapter 11: Functional Approaches in JavaCode ExercisesAdvanced ExercisesChapter 12: Desktop ApplicationsCode ExercisesAdvanced ExercisesChapter 13: Network Programming in JavaCode ExercisesAdvanced ExercisesGlossaryIndexAbout the AuthorsColophon
Описание
В этом материале разберём тему: java.
Whether you are a software developer or just someone who uses the internet in your daily life, you’ve undoubtedly heard about Java. This book introduces the Java programming language and environment. Its arrival was one of the most exciting developments in the history of the web, and Java applications continue to power business on the internet. Java has surpassed languages such as C++ and Visual Basic in terms of developer demand and has become the de facto language for certain kinds of development—especially for web-based services. Java is, arguably, the most popular programming language in the world, used by millions of developers on almost every kind of computer imaginable. Most universities are now using Java in their introductory courses alongside the other important modern languages. This book gives you a thorough grounding in Java fundamentals and grammar. Perhaps you’re using this text in one of your classes right now! Learning Java, Sixth Edition, attempts to live up to its name by mapping out the Java language and its class libraries, programming techniques, and idioms. Other titles from O’Reilly pick up where we leave off and provide more comprehensive information on specific areas and applications of Java. We’ll dig deep into interesting areas and at least scratch the surface of other popular topics. Whenever possible, we provide compelling, realistic, and fun examples and avoid merely cataloging features. We won’t be developing the next great “killer app” in these pages, but we hope to give you a starting point for many hours of experimentation and inspired tinkering that will lead you to develop one yourself. The examples are simple but hint at what can be done.
На этом основные моменты по теме закрыты.
Поделиться
Частые вопросы
Можно ли скачать «Learning Java: An Introduction to Real-World Programming with Java. 6 Ed» бесплатно?
Да, «Learning Java: An Introduction to Real-World Programming with Java. 6 Ed» доступна для бесплатного скачивания на нашем сайте в формате PDF. Ссылка на файл находится на этой странице.
В каком формате и какого размера файл?
Книга предоставляется в формате PDF, размер файла 3,8 МБ.
Кто автор и когда вышла книга?
автор — Leuck Dan , Loy Marc , Niemeyer Patrick, издательство O’Reilly Media, Inc., год выпуска 2023, 552 страниц.
О чём книга «Learning Java: An Introduction to Real-World Programming with Java. 6 Ed»?
This book introduces the Java programming language and environment.