Java Puzzlers

Traps, Pitfalls, and Corner Cases
Author: Joshua Bloch,Neal Gafter
Publisher: Pearson Education
ISBN: 0321643518
Category: Computers
Page: 312
View: 5462

Continue Reading →

"Every programming language has its quirks. This lively book reveals oddities of the Java programming language through entertaining and thought-provoking programming puzzles." --Guy Steele, Sun Fellow and coauthor of The Java™ Language Specification "I laughed, I cried, I threw up (my hands in admiration)." --Tim Peierls, president, Prior Artisans LLC, and member of the JSR 166 Expert Group How well do you really know Java? Are you a code sleuth? Have you ever spent days chasing a bug caused by a trap or pitfall in Java or its libraries? Do you like brainteasers? Then this is the book for you! In the tradition of Effective Java™, Bloch and Gafter dive deep into the subtleties of the Java programming language and its core libraries. Illustrated with visually stunning optical illusions, Java™ Puzzlers features 95 diabolical puzzles that educate and entertain. Anyone with a working knowledge of Java will understand the puzzles, but even the most seasoned veteran will find them challenging. Most of the puzzles take the form of a short program whose behavior isn't what it seems. Can you figure out what it does? Puzzles are grouped loosely according to the features they use, and detailed solutions follow each puzzle. The solutions go well beyond a simple explanation of the program's behavior--they show you how to avoid the underlying traps and pitfalls for good. A handy catalog of traps and pitfalls at the back of the book provides a concise taxonomy for future reference. Solve these puzzles and you'll never again fall prey to the counterintuitive or obscure behaviors that can fool even the most experienced programmers.

Java Concurrency in Practice


Author: Tim Peierls,Brian Goetz,Joshua Bloch,Joseph Bowbeer,Doug Lea,David Holmes
Publisher: Pearson Education
ISBN: 9780132702256
Category: Computers
Page: 432
View: 4546

Continue Reading →

Threads are a fundamental part of the Java platform. As multicore processors become the norm, using concurrency effectively becomes essential for building high-performance applications. Java SE 5 and 6 are a huge step forward for the development of concurrent applications, with improvements to the Java Virtual Machine to support high-performance, highly scalable concurrent classes and a rich set of new concurrency building blocks. In Java Concurrency in Practice , the creators of these new facilities explain not only how they work and how to use them, but also the motivation and design patterns behind them. However, developing, testing, and debugging multithreaded programs can still be very difficult; it is all too easy to create concurrent programs that appear to work, but fail when it matters most: in production, under heavy load. Java Concurrency in Practice arms readers with both the theoretical underpinnings and concrete techniques for building reliable, scalable, maintainable concurrent applications. Rather than simply offering an inventory of concurrency APIs and mechanisms, it provides design rules, patterns, and mental models that make it easier to build concurrent programs that are both correct and performant. This book covers: Basic concepts of concurrency and thread safety Techniques for building and composing thread-safe classes Using the concurrency building blocks in java.util.concurrent Performance optimization dos and don'ts Testing concurrent programs Advanced topics such as atomic variables, nonblocking algorithms, and the Java Memory Model

Effective Java


Author: Joshua Bloch
Publisher: Addison-Wesley Professional
ISBN: 0134686047
Category: Computers
Page: 416
View: 6848

Continue Reading →

The Definitive Guide to Java Platform Best Practices–Updated for Java 7, 8, and 9 Java has changed dramatically since the previous edition of Effective Java was published shortly after the release of Java 6. This Jolt award-winning classic has now been thoroughly updated to take full advantage of the latest language and library features. The support in modern Java for multiple paradigms increases the need for specific best-practices advice, and this book delivers. As in previous editions, each chapter of Effective Java, Third Edition, consists of several “items,” each presented in the form of a short, stand-alone essay that provides specific advice, insight into Java platform subtleties, and updated code examples. The comprehensive descriptions and explanations for each item illuminate what to do, what not to do, and why. The third edition covers language and library features added in Java 7, 8, and 9, including the functional programming constructs that were added to its object-oriented roots. Many new items have been added, including a chapter devoted to lambdas and streams. New coverage includes Functional interfaces, lambda expressions, method references, and streams Default and static methods in interfaces Type inference, including the diamond operator for generic types The @SafeVarargs annotation The try-with-resources statement New library features such as the Optional interface, java.time, and the convenience factory methods for collections

Java Generics and Collections


Author: Maurice Naftalin,Philip Wadler
Publisher: "O'Reilly Media, Inc."
ISBN: 0596527756
Category: Computers
Page: 273
View: 6593

Continue Reading →

This book, written by one of the designers of generics, is a thorough explanation of how to use generics, and particularly, the effect this facility has on the way developers use collections.

Java Programming Interviews Exposed


Author: Noel Markham
Publisher: John Wiley & Sons
ISBN: 1118722884
Category: Computers
Page: 384
View: 2281

Continue Reading →

If you are a skilled Java programmer but are concerned about the Java coding interview process, this real-world guide can help you land your next position Java is a popular and powerful language that is a virtual requirement for businesses making use of IT in their daily operations. For Java programmers, this reality offers job security and a wealth of employment opportunities. But that perfect Java coding job won't be available if you can't ace the interview. If you are a Java programmer concerned about interviewing, Java Programming Interviews Exposed is a great resource to prepare for your next opportunity. Author Noel Markham is both an experienced Java developer and interviewer, and has loaded his book with real examples from interviews he has conducted. Review over 150 real-world Java interview questions you are likely to encounter Prepare for personality-based interviews as well as highly technical interviews Explore related topics, such as middleware frameworks and server technologies Make use of chapters individually for topic-specific help Use the appendix for tips on Scala and Groovy, two other languages that run on JVMs Veterans of the IT employment space know that interviewing for a Java programming position isn't as simple as sitting down and answering questions. The technical coding portion of the interview can be akin to a difficult puzzle or an interrogation. With Java Programming Interviews Exposed, skilled Java coders can prepare themselves for this daunting process and better arm themselves with the knowledge and interviewing skills necessary to succeed.

Hardcore Java


Author: Robert Simmons
Publisher: "O'Reilly Media, Inc."
ISBN: 9780596005689
Category: Computers
Page: 324
View: 5531

Continue Reading →

Focuses on the little-touched but critical parts of the Java programming language that the expert programmers use. Learn about extremely powerful and useful programming techniques such as reflection, advanced data modeling, advanced GUI design, and advanced aspects of JDO, EJB, and XML-based web clients. This unique book reveals the true wizardry behind the complex and often mysterious Java environment--O'Reilly web site.

Programming Interviews Exposed

Secrets to Landing Your Next Job
Author: John Mongan,Noah Suojanen Kindler,Eric Giguère
Publisher: John Wiley & Sons
ISBN: 1118283406
Category: Computers
Page: 336
View: 4376

Continue Reading →

Be prepared for your next job interview with this tried-and-true advice In today's tight job market, competition for programming jobs is hotter than ever. This third edition of a popular guide to programming interviews includes new code examples, information on the latest languages, new chapters on sorting and design patterns, tips on using LinkedIn, and a downloadable app to help prepare applicants for the interview. Like its earlier editions, this guide covers what software companies and IT departments want their programmers to know and includes plenty of helpful hints to boost your confidence. Looks at current job search and hiring processes, such as the rise of LinkedIn and other social networks as recruiting resources Addresses the most important languages for a programmer to know and features examples in multiple languages Includes new programming questions designed to sharpen your knowledge Features all-new chapters on design patterns and sorting, including how to deal with memory constraints and mobility issues Walk into your next job interview with confidence, knowing you have thoroughly studied this newest edition of Programming Interviews Exposed.

The Java Language Specification


Author: James Gosling,Bill Joy,Guy L. Steele,Gilad Bracha,Alex Buckley
Publisher: Pearson Education
ISBN: 013390069X
Category: Computers
Page: 758
View: 929

Continue Reading →

Written by the inventors of the technology, The Java� Language Specification, Java SE 8 Edition is the definitive technical reference for the Java programming language. The book provides complete, accurate, and detailed coverage of the Java programming language. It fully describes the new features added in Java SE 8, including lambda expressions, method references, default methods, type annotations, and repeating annotations. The book also includes many explanatory notes and carefully distinguishes the formal rules of the language from the practical behavior of compilers.

Inside Java2 Virtual Machine W/Cd


Author: Venners
Publisher: Tata McGraw-Hill Education
ISBN: 9780074639757
Category: Java (Computer program language)
Page: 703
View: 2423

Continue Reading →

This insider guide gives the understanding needed to write more effective code for Java programs and get maximum performance from Java applications. Both a tutorial and reference, the book is easy to follow for Java programmers at all levels. Readers learn what's going on underneath their Java programs as they run, and gain valuable insights into garbage collection techniques, multithreading, compilers, bytecodes, the Java interpreter and more. The accompanying CD-ROM contains numerous code examples, as well as interactive illustrations that provide valuable programming insights.

Data Structures and Algorithms Made Easy in Java

Data Structure and Algorithmic Puzzles, Second Edition
Author: Narasimha Karumanchi
Publisher: Createspace Independent Pub
ISBN: 9781468101270
Category: Computers
Page: 419
View: 1691

Continue Reading →

Peeling Data Structures and Algorithms for (Java, Second Edition): * Programming puzzles for interviews * Campus Preparation * Degree/Masters Course Preparation * Instructor's * GATE Preparation * Big job hunters: Microsoft, Google, Amazon, Yahoo, Flip Kart, Adobe, IBM Labs, Citrix, Mentor Graphics, NetApp, Oracle, Webaroo, De-Shaw, Success Factors, Face book, McAfee and many more * Reference Manual for working people

VBScript Programmer's Reference


Author: Adrian Kingsley-Hughes,Kathie Kingsley-Hughes,Daniel Read
Publisher: John Wiley & Sons
ISBN: 1118058690
Category: Computers
Page: 816
View: 3188

Continue Reading →

Completely updated for Windows Vista and Windows Server 2003 R2, this book is packed with practical examples for today's programmer, Web developer, or system administrator Combines a comprehensive overview of the VBScript technology and associated technologies with sample code at every stage from beginner to advanced user Discusses the general syntax, functions, keywords, style, error handling, and similar language-specific topics and then moves into an expanded reference section covering the object models in detail Presents advanced coverage on Active Directory Service Interfaces (ADSI), PowerShell, security scripting, remote scripting, database scripting, and more

Sams Teach Yourself Game Programming in 24 Hours


Author: Michael Morrison
Publisher: Sams Publishing
ISBN: 9780672324611
Category: Computers
Page: 488
View: 4497

Continue Reading →

Teaches fundamental C and C++ programming and provides information for programming games in Windows, exploring topics including game theory, double-buffered graphics, sprite animation, and digitized sound effects.

Spring Boot Cookbook


Author: Alex Antonov
Publisher: Packt Publishing Ltd
ISBN: 178528911X
Category: Computers
Page: 206
View: 6233

Continue Reading →

Over 35 recipes to help you build, test, and run Spring applications using Spring Boot About This Book Learn to create different types of Spring Boot applications, configure behavior, and add custom components Become more efficient in testing, deploying, and monitoring Spring Boot based applications This is a practical guide that will help Spring developers to develop and deploy applications using Spring Boot Who This Book Is For If you are a Spring Developer who has good knowledge level and understanding of Spring Boot and application development and now want to learn efficient Spring Boot development techniques in order to make the existing development process more efficient, then this book is for you. What You Will Learn Create Spring Boot applications from scratch Configure and tune web applications and containers Create custom Spring Boot auto-configurations and starters Use Spring Boot Test framework with JUnit, Cucumber, and Spock Configure and tune web applications and containers Deploy Spring Boot as self-starting executables and Docker containers Monitor data using DropWizard, Graphite, and Dashing In Detail Spring Boot is Spring's convention-over-configuration solution. This feature makes it easy to create Spring applications and services with absolute minimum fuss. Spring Boot has the great ability to be customized and enhanced, and is specifically designed to simplify development of a new Spring application. This book will provide many detailed insights about the inner workings of Spring Boot, as well as tips and recipes to integrate the third-party frameworks and components needed to build complex enterprise-scale applications. The book starts with an overview of the important and useful Spring Boot starters that are included in the framework, and teaches you to create and add custom Servlet Filters, Interceptors, Converters, Formatters, and PropertyEditors to a Spring Boot web application. Next it will cover configuring custom routing rules and patterns, adding additional static asset paths, and adding and modifying servlet container connectors and other properties such as enabling SSL. Moving on, the book will teach you how to create custom Spring Boot Starters, and explore different techniques to test Spring Boot applications. Next, the book will show you examples of configuring your build to produce Docker images and self-executing binary files for Linux/OSX environments. Finally, the book will teach you how to create custom health indicators, and access monitoring data via HTTP and JMX. Style and approach This book is a cohesive collection of recipes that provide developers with a set of connected guidelines on how to build, configure, and customize their application, starting from the design and development stages, all the way through testing, deployment, and production monitoring.

Building Java Programs

A Back to Basics Approach
Author: Stuart Reges,Marty Stepp
Publisher: Pearson
ISBN: 9780134322766
Category: Computers
Page: 1224
View: 6928

Continue Reading →

For courses in Java Programming Layered, Back-to-Basics Approach to Java Programming Newly revised and updated, this Fourth Edition of Building Java Programs: A Back to Basics Approach uses a layered strategy to introduce Java programming, with the aim of overcoming the difficulty associated with introductory programming textbooks. The authors' proven and class-tested "back to basics" approach introduces programming fundamentals first, with new syntax and concepts added over multiple chapters, and object-oriented programming discussed only once readers have developed a basic understanding of Java programming. Previous editions have established the text's reputation as an excellent choice for thoroughly introducing the basics of computer science, and new material in the Fourth Edition incorporates concepts related to Java 8, functional programming, and image manipulation. Note: You are purchasing a standalone product; MyLab(tm)& Mastering(tm) does not come packaged with this content. Students, if interested in purchasing this title with MyLab & Mastering, ask your instructor for the correct package ISBN and Course ID. Instructors, contact your Pearson representative for more information. If you would like to purchase both the physical text and MyLab & Mastering, search for: 0134448308 / 9780134448305 Building Java Programs: A Back to Basics Approach plus MyProgrammingLab with Pearson eText -- Access Card Package, 4/e Package consists of: 0134324706 / 9780134324708 MyProgrammingLab with Pearson eText -- Instant Access -- for Building Java Programs: A Back to Basics Approach, 4/e 0134322762 / 9780134322766 Building Java Programs: A Back to Basics Approach

Concurrent Programming in Java

Design Principles and Patterns
Author: Douglas Lea
Publisher: Addison-Wesley Professional
ISBN: 9780201310092
Category: Computers
Page: 411
View: 5318

Continue Reading →

Software -- Programming Languages.

The Design of Design

Essays from a Computer Scientist
Author: Frederick P. Brooks Jr.
Publisher: Pearson Education
ISBN: 0321702069
Category: Computers
Page: 448
View: 3506

Continue Reading →

Making Sense of Design Effective design is at the heart of everything from software development to engineering to architecture. But what do we really know about the design process? What leads to effective, elegant designs? The Design of Design addresses these questions. These new essays by Fred Brooks contain extraordinary insights for designers in every discipline. Brooks pinpoints constants inherent in all design projects and uncovers processes and patterns likely to lead to excellence. Drawing on conversations with dozens of exceptional designers, as well as his own experiences in several design domains, Brooks observes that bold design decisions lead to better outcomes. The author tracks the evolution of the design process, treats collaborative and distributed design, and illuminates what makes a truly great designer. He examines the nuts and bolts of design processes, including budget constraints of many kinds, aesthetics, design empiricism, and tools, and grounds this discussion in his own real-world examples—case studies ranging from home construction to IBM’s Operating System/360. Throughout, Brooks reveals keys to success that every designer, design project manager, and design researcher should know.

Essentials of Programming Languages


Author: Daniel P. Friedman,Mitchell Wand
Publisher: MIT Press
ISBN: 0262062798
Category: Computers
Page: 410
View: 8438

Continue Reading →

1. Inductive sets of data 2. Data abstraction 3. Expressions 4. State 5. Continuation-passing interpreters 6. Continuation-passing style 7. Types 8. Modules 9. Objects and classes.

Creating the Art of the Game


Author: Matthew Omernick
Publisher: New Riders
ISBN: 9780132705073
Category: Computers
Page: 320
View: 924

Continue Reading →

The key word here is art: the dynamic 3D art that defines the world of computer games. This book teaches you everything you need to know about the planning, modeling, texturing, lighting, effects creation, and interface design that go into creating today's most advanced and stunning video games. You'll be learning from a master-veteran 3D artist and instructor Matthew Omernick-as you progress through the carefully chosen, software-agnostic tutorials that make up this beautiful, full-color volume. The end result will be skills you can apply to whatever 3D tool you choose and whatever wildly imaginative game you can think up. Through a unique combination of explanation, tutorials, and real world documentation-including discussions of the creative process entailed in some of today's most popular games augmented by screen captures and descriptions--you'll quickly come to understand the workflow, tools, and techniques required to be a successful game artist. In addition to learning the ropes of game art, you'll also find in depth tutorials and techniques that apply to all aspects of 3D graphics. Whether you are using Photoshop, 3ds max, Maya, or any other computer graphics software, you'll find a wealth of information that you can continue to come back to time and time again.