DER Java-Klassiker. Jetzt aktualisiert! Seit der Vorauflage von »Effective Java«, die kurz nach dem Release von Java 6 erschienen ist, hat sich Java dramatisch verändert. Dieser preisgekrönte Klassiker wurde nun gründlich aktualisiert, um die neuesten Sprach- und Bibliotheksfunktionen vorzustellen. Erneut zeigt Java-Kenner Joshua Bloch anhand von Best Practices, wie Java moderne Programmierparadigmen unterstützt. Wie in früheren Ausgaben besteht jedes Kapitel von »Effective Java« aus mehreren Themen, die jeweils in Form eines kurzen, eigenständigen Essays präsentiert werden. Dieses enthält jeweils spezifische Ratschläge, Einblicke in die Feinheiten der Java-Plattform und Codebeispiele. Umfassende Beschreibungen und Erklärungen für jedes Thema beleuchten, was zu tun ist, was nicht zu tun ist und warum es zu tun ist. Die dritte Auflage behandelt Sprach- und Bibliotheksfunktionen, die in Java 7, 8 und 9 hinzugefügt wurden, einschließlich der funktionalen Programmierkonstrukte. Neue Themen sind unter anderem: - Functional Interfaces, Lambda-Ausdrücke, Methodenreferenzen und Streams - Default- und statische Methoden in Interfaces - Type Inference, einschließlich des Diamond-Operators für generische Typen - Die Annotation @SafeVarargs - Das Try-with-Resources-Statement - Neue Bibliotheksfunktionen wie das Optional Interface, java. time und die Convenience-Factory-Methoden für Collections
Joshua Bloch Bücher




Java efektivně. 57 zásad softwarového experta
- 230 Seiten
- 9 Lesestunden
Kniha se výrazně liší od běžných programátorských příruček, soustřeďuje se na praktické a efektivní používání Javy a jejích konstrukcí. Nabídne vám 57 cenných rad řešících programátorské problémy, s nimiž se většina vývojářů denně setkává. Obsahuje přesný a výstižný popis technik používaných experty, kteří vyvinuli platformu Java. Tyto rady jasně popisují, co dělat a co naopak nedělat, aby vaše programy byly průzračné, robustní a efektivní.
Based on Bloch and Gafter's standing room only Java Puzzlers talk at JavaOne, the heart of the book comprises over 100 Java programming language puzzlers: brainteasers that challenge the intellect while alerting programmers to the traps, pitfalls, and corner cases that lurk in the nether regions of the Java platform. All of the puzzles from the authors' popular JavaOne presentations are included, as are many puzzles never before seen in public. There are two major types of puzzles in the book. Most of the puzzles take the form of short programs that appear to do something but actually do something else. Readers will be encouraged to predict the behavior of the program before running it. After running the program, readers will be encouraged to figure out why it behaved as it did before consulting the solution. In a second type of puzzle, the reader will be asked to write a short program that performs some specific task. Most of the solutions will contain a moral, a rule the reader can follow to avoid the problematic behavior demonstrated in the puzzle. The puzzles are grouped into chapters based on the primary platform features they exercise and to maximize readability, fun, and pedagogical effectiveness.