O'Reilly logo

Java Programming Interviews Exposed by Noel Markham

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Introduction

Interviews can be overwhelming for some, especially when you are being examined, one to one, on your technical abilities.

This book has been designed to give you guidance and preparation for finding your next job as a Java developer. It has been written to help you overcome any sense of fear or worry around Java programming interviews by giving you enough material to practice with so that you can feel confident about any questions you might be asked.

Overview of the Book and Technology

This book is based on Java SE 7. If you are an experienced Java developer, but not up to date with Java 7, following are some new language features and APIs that have been introduced.

The Diamond Operator

Where possible, the compiler can infer the type of a generic instance. This means you can write List<Integer> numbers = new ArrayList<>() instead of List<Integer> numbers = new ArrayList<Integer>(). This can greatly reduce the amount of boilerplate code when with working with collections, and especially nested collections of collections.

Using Strings in switch Statements

The initial switch statement in Java could only deal with numeric types in a switch statement. The introduction of enumerated types in Java 5 allowed them to be used in a switch. From Java 7, String objects can be used in a switch statement.

A New File I/O Library

Java 7 introduces a new I/O library, with the focus on platform independence and non-blocking I/O.

Many more features have been introduced, including automatic ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required