• Complain

M Jolly. - Java Interview Notes: 700 Java Interview Questions Answered

Here you can read online M Jolly. - Java Interview Notes: 700 Java Interview Questions Answered full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

M Jolly. Java Interview Notes: 700 Java Interview Questions Answered
  • Book:
    Java Interview Notes: 700 Java Interview Questions Answered
  • Author:
  • Genre:
  • Rating:
    5 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 100
    • 1
    • 2
    • 3
    • 4
    • 5

Java Interview Notes: 700 Java Interview Questions Answered: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Java Interview Notes: 700 Java Interview Questions Answered" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Amazon Digital Services LLC, 2016. 213 p. ASIN: B01B0TCZ70Java Interview Notes incorporate most critical topics discussed during Java technical interview round, along with the interview questions for each concept. This book also contains lots of code snippets and figures to explain matters.
Concepts in the book are organized in very precise and concise manner, in small chapters and are to the point.
CONTENT:
Java Fundamentals:
Java Program Anatomy
Java Program and JVM
Data Types
Naming Convention
Object class
Access Modifiers
static
final
static initialization block
finally
finalize
Widening vs Narrowing Conversion
getters and setters
varargs vs object array
default interface method
static interface method
Annotations
Preferences
Pass by value or reference
Object Oriented Programming:
Polymorphism
Parametric Polymorphism
Subtype Polymorphism
Overriding
Override
Overloading
Abstraction
Inheritance
Composition
Fundamental Design Concepts:
DI vs IoC
Service Locator
Diamond Problem
Programming to Interface
Abstract class vs Interface
Internationalization and Localization
Immutable Objects
Cloning
Data Types :
NaN
EnumSet
Comparing Data Types
Float comparison
String comparison
Enum comparison
enum vs public static int field
Wrapper Classes
Auto boxing and Auto unboxing
BigInteger and BigDecimal
Strings :
String Immutability
String Literal vs Object
String Interning
String Pool Memory Management
Immutability - Security issue
Circumvent String immutability
StringBuffer vs StringBuilder
Unicode
Inner Classes:
Inner Classes
Static Member Nested Class
Local Inner Class
Non-Static Nested Class
Anonymous Inner Class
Functional Programming:
Lambda Expression
Functional Interface
Pure Functions
Fluent Interface
Generics :
Generics
Generics-Type Wildcards
Generics - Method
Java Generics vs Java Array
Generics - Type Erasure
Co-variance
Contra-variance
Co-variance vs Contra-variance
Collections :
Collection design aspects
Collection Fundamentals
Collection Interfaces
Collection Types
Set
List
Queue
Map
Algorithms
Comparable vs Comparator
hashCode and equals
HashTable vs HashMap
Synchronized vs Concurrent Collections
Iterating over collections
fail-fast vs fail-safe
Error and Exception:
Exception
Checked vs Unchecked vs Error
Exception Handling Best Practices
try-with-resource
Threading :
Threading Terms
Thread Lifecycle
Thread Termination
Runnable vs Thread
Runnable vs Callable
Daemon Thread
Race Condition and Immutable object
Thread Pool
Synchronization :
Concurrent vs Parallel vs Asynchronous
Thread Synchronization
Synchronized method vs Synchronized block
Conditional Synchronization
Volatile
static vs volatile vs synchronized
ThreadLocal Storage
wait() vs sleep
Joining Thread
Atomic Classes
Lock
ReadWriteLock
Synchronizers
Barrier
Semaphore
Phaser
Exchanger
Latch
Executor Framework
Executor Service
Fork-Join Framework
Reflection :
Purpose of reflection
Drawbacks of Reflection
Data Interchange:
JSON
Memory Management:
Stack vs Heap
Heap fragmentation
Object Serialization
Garbage Collection
Memory Management
Weak vs Soft vs Phantom Reference
Unit Testing:
Why unit testing?
Unit vs Integration vs Regression vs Validation
Testing private members
Mocking and Mock Objects
Java Tools:
Git
Maven
Ant
Jenkins

M Jolly.: author's other books


Who wrote Java Interview Notes: 700 Java Interview Questions Answered? Find out the surname, the name of the author of the book and a list of all author's works by series.

Java Interview Notes: 700 Java Interview Questions Answered — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Java Interview Notes: 700 Java Interview Questions Answered" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make

Java Interview Notes

by Jolly

Copyright 2016 by Jolly M.

All rights reserved, including the right to reproduce this book, or any portions of it, in any form.

CONTENT

INTRODUCTION

Introduction

Java Interview Notes cover topics that are frequently discussed during Java technical interview round, along with interview questions for each topic. This book also contains lots of code snippets and figures to explain topics.

To be confident in an interview, thorough understanding of software design and language concepts is very important, because during an interview same question can be asked in many different ways.

Interviewers are interested in hearing not just the correct answer, but also your opinion and thoughts about the topic. Your approach towards understanding the questions and sharing your thoughts plays an extremely important role in an interview success.

Confidence to face such interview can only be achieved when you spend really good amount of time coding, reading technical topics and discussing this with peers. There is no other shortcut available.

I hope this book helps to prepare you not only for your next interview, but also for your day-to-day software development task.

All the best!!!

JAVA

FUNDAMENTALS

Java Program Anatomy

The following code snippet depicts the anatomy of simple Java program.

Package - Represents logical grouping of similar types into namespaces It also - photo 1

  • Package - Represents logical grouping of similar types into namespaces. It also prevents naming collision and provides access protection.
  • Import - Imports the package, so that classes can be used in the code by their unqualified names.
  • Class - Represents a type template having properties and methods.
  • Field - Represents a member used for holding values.
  • Method - Represents an operation/behaviour of the class.
  • Modifier - Specifies access control level of a class and its members.
  • Parameter - Specifies the variable declared in the method definition.
  • Argument - Specifies the data passed to the method parameters.

Questions

  • What is package?
  • Why do you need to import packages?
  • Why do you need to specify access modifiers?
  • What is static import?
    • static import enables access to static members of a class without need to qualify it by the class name.
  • What is the difference between argument and parameter?

Compiling and Executing Java Code in JVM

Java program compilation and execution steps

Java Compiler compiles the Java source code java file into a binary format - photo 2

  1. Java Compiler compiles the Java source code (.java file) into a binary format known as bytecode (.class file). Java bytecode is platform independent instruction set, which contains instructions (opcode) and parameter information.
  2. Bytecode is translated by the Operating System specific Java Virtual Machine (JVM) into the platform specific machine code.
  3. Class loader in JVM loads the binary representation of the classes into memory.
  4. Execution engine in JVM executes the byte code and generates Operating System specific machine instructions. These machine instructions are executed directly by the central processing unit (CPU).

Questions

  • Explain the process of Java code compilation and execution?
  • What is bytecode?
  • What is the difference between bytecode and source code?
  • What is machine code?
  • What is the difference between bytecode and machine code?
  • What is JVM? Is it same or different for different Operating Systems?
  • What are the major components of JVM?
  • What is the role of class loader in JVM?
  • What is the role of Execution Engine in JVM?
  • What are machine instructions?

Data Types

Primitive Types

  • Primitive types are byte , boolean , char , short , int , float , long and double .
  • Primitive types always have a value; if not assigned, will have a default value.
  • A long value is suffixed with L (or l) to differentiate it from int .
  • A float value is suffixed with F (or f) to differentiate it from double . Similarly double is suffixed with D ( or d )
  • A char is unsigned and represent an Unicode values.
  • When a primitive type is assigned to another variable, a copy is created.

Reference Types

  • All non-primitive types are reference types.
  • Reference types are also usually known as objects . A reference type also refers to an object in memory.
  • Objects of reference type will have null as default value, when it's unassigned.
  • Objects have variables and methods, which define its state and the behaviour.
  • When a reference is assigned to another reference, both points to the same object.

Questions

  • What are primitive data types?
  • If a variable of primitive data type is not assigned, what does it contain?
  • Why do we suffix L with long, F with Float and D with double?
  • What happens when you assign a variable of primitive data type to another variable of same type?
  • What are reference data types?
  • What happens when you assign a variable of reference data type to another variable of same reference type?
  • What are the differences between primitive data types and reference data types?
  • What are the purposes of variables and methods in a reference type?
  • If a variable of reference data type is not assigned, what does it contain?

Object class

Every Java class is inherited, directly or indirectly, from java.lang.Object class, which also means that a variable of Object class can reference object of any class.

Due to inheritance, all the following java.lang.Object class methods, which are not final or private , are available for overriding with class specific code.

  • - returns hash-code value for the object.
  • - compares two objects for equality using identity (==) operator.
  • interface and implement clone() method to define the meaning of copy.
  • toString() - returns string representation of the object.
  • f - called by the Garbage Collector to clean up the resources. java.lang.Object's implementation of finalize() does nothing.

Questions

  • What is the base class for all Java classes?
  • What are the different methods of java.lang.Object class, which are available for overriding in the derived class.
  • What happens if your class does not override equals method from the java.lang.Object class?
    • The equals() method in java.lang.Object class compares whether object references are same, and not the content. To compare content, you need to override equals() method.
  • What is the purpose of () method?
  • Why should the overriding class define the meaning of clone() method?
  • What happens if overriding class does not override clone() method?
    • In case if an object contains references to an external objects, any change made to the referenced object will be visible in the cloned object too.

Access Modifiers

Access modifiers determine the visibility rules whether other classes can access a variable or invoke a method.

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Java Interview Notes: 700 Java Interview Questions Answered»

Look at similar books to Java Interview Notes: 700 Java Interview Questions Answered. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Java Interview Notes: 700 Java Interview Questions Answered»

Discussion, reviews of the book Java Interview Notes: 700 Java Interview Questions Answered and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.