By Cay S. Horstmann, Gary Cornell

Absolutely up to date to mirror Java SE 7 language adjustments, Core Java™, quantity I—Fundamentals, 9th Edition, is the definitive consultant to the Java platform.

Designed for critical programmers, this trustworthy, impartial, no-nonsense instructional illuminates key Java language and library good points with completely confirmed code examples. As in past variants, all code is straightforward to appreciate, displays sleek most sensible practices, and is in particular designed to assist jumpstart your tasks.

Volume I fast brings you up-to-speed on Java SE 7 middle language improvements, together with the diamond operator, greater source dealing with, and catching of a number of exceptions. the entire code examples were up-to-date to mirror those improvements, and entire descriptions of latest SE 7 positive aspects are built-in with insightful factors of primary Java techniques. You’ll study all you should be effective with

  • The Java programming environment
  • Objects, sessions, and inheritance
  • Interfaces and internal classes
  • Reflection and proxies
  • Graphics programming
  • Event dealing with and the development listener model
  • Swing-based person interface components
  • Application and applet deployment
  • Exceptions, logging, assertions, and debugging
  • Generic programming
  • Collections
  • Concurrency, and more

For exact assurance of complicated gains, together with the recent API for dossier input/output and improvements to the concurrency utilities, search for middle Java™, quantity II—Advanced positive factors, 9th variation (ISBN-13: 978-0-13-708160-8).

Show description

Read Online or Download Core Java, Volume 1: Fundamentals (9th Edition) PDF

Best java books

Java Performance: The Definitive Guide

Coding and trying out are frequently thought of separate parts of craftsmanship. during this finished advisor, writer and Java professional Scott Oaks takes the technique that anybody who works with Java may be both adept at knowing how code behaves within the JVM, in addition to the tunings more likely to support its functionality.

Java in a Nutshell (6th Edition)

The newest variation of Java in a Nutshell is designed to assist skilled Java programmers get the main out of Java 7 and eight, yet it's additionally a studying direction for brand spanking new builders. Chock choked with examples that display find out how to take entire good thing about sleek Java APIs and improvement most sensible practices, the 1st portion of this completely up to date e-book offers a fast paced, no-fluff creation to the Java programming language and the center runtime points of the Java platform.

Invasive Software Composition

Over the last 20 years, software program engineering has come a ways from object-based to object-oriented to component-based layout and improvement. Invasive software program composition is a brand new approach that unifies and extends contemporary software program engineering suggestions like prevalent programming, aspect-oriented improvement, structure platforms, or subject-oriented improvement.

Cracking the Java Coding Interview

I'm really not a recruiter. i'm a software program engineer. And as such, i do know what it really is prefer to be requested to whip up excellent algorithms immediate, after which write faultless code on a whiteboard. i do know simply because i have been requested to do an identical thing--in interviews at Google, Microsoft, Apple, and Amazon, between different businesses.

Additional resources for Core Java, Volume 1: Fundamentals (9th Edition)

Example text

3 Message Bodies The JMS API defines five message body formats, also called message types, which allow you to send and to receive data in many different forms and provide compatibility with existing messaging formats. 2 describes these message types. String object (for example, the contents of an Extensible Markup Language file). MapMessage A set of name/value pairs, with names as String objects and values as primitive types in the Java programming language. The entries can be accessed sequentially by enumerator or randomly by name.

You can use the setPriority method of the MessageProducer interface to set the priority level for all messages sent by that producer. • You can use the long form of the send or the publish method to set the priority level for a specific message. The third argument sets the priority level. NON_PERSISTENT, 3, 10000); The ten levels of priority range from 0 (lowest) to 9 (highest). If you do not specify a priority level, the default level is 4. A JMS provider tries to deliver higher-priority messages before lower-priority ones but does not have to deliver messages in exact order of priority.

The most reliable way to produce a message is to send a PERSISTENT message within a transaction. JMS messages are PERSISTENT by default. A transaction is a unit of work into which you can group a series of operations, such as message sends and receives, so that the operations either all succeed or all fail. 2 on page 70. The most reliable way to consume a message is to do so within a transaction, either from a nontemporary queue—in the PTP messaging domain—or from a durable subscription—in the pub/sub messaging domain.

Download PDF sample

Rated 4.04 of 5 – based on 44 votes