Java and Java EE Interview Preparations
By Navin Shet
()
About this ebook
In today’s world, for one role nearly 1000 people apply for the job and the competition is very stiff. Even the agents take the interview, so the most important thing to do is to make sure your CV is short and up to the point and has all the key skills mentioned clearly. The 2nd important thing to do is to make sure the agent forwards your CV to the employer.
This book has been written for all the Junior/Mid/Senior Java Developer, who either applying for their first job or is planning to change jobs. This book covers all the common questions covered in Interviews.
I have put all my experience into this book. I had gone through many interviews and soon realized that I need to know lot of stuff to be able to get the job. So, I started writing all the questions asked to me and my friends and soon I got the collection so big that I could write this book. By the time I could finish this book, I got several contract and permanent job offer. And there were occasions where I was made several offers and was able to negotiate the contract rate/Permanent salary as well.
Interview Process can contain a written test, Telephonic Interview or Face to Face Interview. This book prepares you for all three stages. In the new Covid world, the Face to Face is replaced with Zoom/Teams interview. It is important that you get yourself used to Zoom/Teams call and make sure camera position is correct and the lighting is good. At one instant the interviewer sent me a google docs link and asked me to write a code in Java for a sample algorithm discussed over zoom. Bu doing so interviewer could see what I am typing. So, prepare yourself well.
This book will prepare you for the Interview but expects the reader to have the basic knowledge of Java/Java EE. There are also experiences shared on how to prepare and face an interview. From my experience I found more than 90% of the interviewer will test the candidates on Core Java. So, make sure you know the first 3 chapter for sure. It is also important to know what’s in your CV. The first set of questions will be from your CV itself. And a good Interviewer can just get his/her candidate for job just by asking what’s in your CV.
This book only helps you with Interview questions. But if you to know the basics and fundamentals of Java then below are the list of books I will recommend. AS Java 17 is out, and Java is releasing a new version every 6 months. All the books and publishers are finding it difficult to keep up pace with the Java versions. But the Java basics will remain the same and any book which covers Java 8 and book is good.
Related to Java and Java EE Interview Preparations
Related ebooks
Java 9 Concurrency Cookbook - Second Edition Rating: 0 out of 5 stars0 ratingsSelenium Framework Design in Keyword-Driven Testing: Automate Your Test Using Selenium and Appium Rating: 0 out of 5 stars0 ratingsSpring Boot 2: How To Get Started and Build a Microservice - Third Edition Rating: 5 out of 5 stars5/5Brush-up java for Interview Rating: 5 out of 5 stars5/5Programming Constructs in Java Rating: 1 out of 5 stars1/5Selenium Interview Questions & Answers Rating: 5 out of 5 stars5/5Spring Boot Cookbook Rating: 0 out of 5 stars0 ratingsJava: Best Practices to Programming Code with Java Rating: 0 out of 5 stars0 ratingsCode with Java 21: A practical approach for building robust and efficient applications (English Edition) Rating: 0 out of 5 stars0 ratingsJava with TDD from the Beginning Rating: 0 out of 5 stars0 ratings100+ Solutions in Java: A Hands-On Introduction to Programming in Java (English Edition) Rating: 0 out of 5 stars0 ratingsJava/J2EE Design Patterns Interview Questions You'll Most Likely Be Asked: Second Edition Rating: 0 out of 5 stars0 ratingsObject Oriented Programming with Angular: Build and Deploy Your Web Application Using Angular with Ease ( English Edition) Rating: 0 out of 5 stars0 ratingsCore Java Interview Questions You'll Most Likely Be Asked: Job Interview Questions Series Rating: 4 out of 5 stars4/5JAVA 9.0 To 13.0 New Features: Learn, Implement and Migrate to New Version of Java. Rating: 0 out of 5 stars0 ratingsJava: Best Practices to Programming Code with Java: Java Computer Programming, #3 Rating: 0 out of 5 stars0 ratingsJavaScript Interview Questions You'll Most Likely Be Asked Rating: 0 out of 5 stars0 ratingsSelenium Interview Questions: Guide to Crack Selenium Automation Interviews Rating: 3 out of 5 stars3/5(Part 2) Java 4 Selenium WebDriver: Come Learn How To Program For Automation Testing Rating: 0 out of 5 stars0 ratingsJAVA: Java Programming for beginners teaching you basic to advanced JAVA programming skills! Rating: 0 out of 5 stars0 ratingsJava 9 Programming By Example Rating: 4 out of 5 stars4/5Java 8 Programmer II Study Guide: Exam 1Z0-809 Rating: 4 out of 5 stars4/5Java Multithreading Interview Questions And Answers Rating: 0 out of 5 stars0 ratings
Software Development & Engineering For You
Grokking Algorithms: An illustrated guide for programmers and other curious people Rating: 4 out of 5 stars4/5PYTHON: Practical Python Programming For Beginners & Experts With Hands-on Project Rating: 5 out of 5 stars5/5Beginning C++ Programming Rating: 3 out of 5 stars3/5Agile Project Management: Scrum for Beginners Rating: 4 out of 5 stars4/5Python For Dummies Rating: 4 out of 5 stars4/5UX Simplified: Models & Methodologies Rating: 3 out of 5 stars3/5Learn to Code. Get a Job. The Ultimate Guide to Learning and Getting Hired as a Developer. Rating: 5 out of 5 stars5/5Python Machine Learning: Introduction to Machine Learning with Python Rating: 0 out of 5 stars0 ratingsAgile Practice Guide Rating: 4 out of 5 stars4/5Hand Lettering on the iPad with Procreate: Ideas and Lessons for Modern and Vintage Lettering Rating: 4 out of 5 stars4/5Programming Problems: A Primer for The Technical Interview Rating: 4 out of 5 stars4/5Case Studies in Design Patterns Rating: 5 out of 5 stars5/5Good Code, Bad Code: Think like a software engineer Rating: 5 out of 5 stars5/5Learn Software Testing in 24 Hours Rating: 0 out of 5 stars0 ratingsRESTful API Design - Best Practices in API Design with REST: API-University Series, #3 Rating: 5 out of 5 stars5/5Beginning Programming For Dummies Rating: 4 out of 5 stars4/5Git Essentials Rating: 4 out of 5 stars4/5How to Write Effective Emails at Work Rating: 4 out of 5 stars4/5Grokking Simplicity: Taming complex software with functional thinking Rating: 4 out of 5 stars4/5Kanban: A Quick and Easy Guide to Kickstart Your Project Rating: 4 out of 5 stars4/5Ry's Git Tutorial Rating: 0 out of 5 stars0 ratingsUML Demystified Rating: 0 out of 5 stars0 ratingsSoftware Architecture with Python Rating: 0 out of 5 stars0 ratingsPractices of the Python Pro Rating: 0 out of 5 stars0 ratingsITIL 4: Digital and IT strategy: Reference and study guide Rating: 5 out of 5 stars5/5Wordpress 2023 A Beginners Guide : Design Your Own Website With WordPress 2023 Rating: 0 out of 5 stars0 ratings
Reviews for Java and Java EE Interview Preparations
0 ratings0 reviews
Book preview
Java and Java EE Interview Preparations - Navin Shet
Java and Java EE Interview Preparations
By Navin Shet
Copyright 2021 Navin Shet
License Notes
This e-book may not be re-sold or given away to other people. If you would like to share this book with another person, please purchase an additional copy for each recipient. If you’re reading this book and did not purchase it, or it was not purchased for your use only, then please return to Smashwords.com and purchase your own copy. Thank you for respecting the hard work of this author.
The author has made every effort in the preparation of this book to ensure the accuracy of the information. However, information in this book is sold without warranty either express or implied. The author will not be held liable for any damages caused or alleged to be caused either directly or indirectly by this book.
I would like to dedicate this book to my wife and kids, for supporting me during the good and bad times, and allowing me to go through the process of Interview. Also, would like to thank my parents and In-laws in believing in me.
All rights reserved.
PREFACE
I have 25 years of Software Development experience and have worked on almost all the Programming Language. Started With ‘C’ on UNIX and Ingress Database, and then moved on to Sybase Database. Then Visual Basic and SQL Server, followed by some .net on C# and then SAP. And then finally started working on Java EE in 2006 and have been working on Java technology since then.
In today’s world, for one role nearly 1000 people apply for the job and the competition is very stiff. Even the agents take the interview, so the most important thing to do is to make sure your CV is short and up to the point and has all the key skills mentioned clearly. The 2nd important thing to do is to make sure the agent forwards your CV to the employer.
This book has been written for all the Junior/Mid/Senior Java Developer, who either applying for their first job or is planning to change jobs. This book covers all the common questions covered in Interviews.
I have put all my experience into this book. I had gone through many interviews and soon realized that I need to know lot of stuff to be able to get the job. So, I started writing all the questions asked to me and my friends and soon I got the collection so big that I could write this book. By the time I could finish this book, I got several contract and permanent job offer. And there were occasions where I was made several offers and was able to negotiate the contract rate/Permanent salary as well.
Interview Process can contain a written test, Telephonic Interview or Face to Face Interview. This book prepares you for all three stages. In the new Covid world, the Face to Face is replaced with Zoom/Teams interview. It is important that you get yourself used to Zoom/Teams call and make sure camera position is correct and the lighting is good. At one instant the interviewer sent me a google docs link and asked me to write a code in Java for a sample algorithm discussed over zoom. Bu doing so interviewer could see what I am typing. So, prepare yourself well.
This book will prepare you for the Interview but expects the reader to have the basic knowledge of Java/Java EE. There are also experiences shared on how to prepare and face an interview. From my experience I found more than 90% of the interviewer will test the candidates on Core Java. So, make sure you know the first 3 chapter for sure. It is also important to know what’s in your CV. The first set of questions will be from your CV itself. And a good Interviewer can just get his/her candidate for job just by asking what’s in your CV.
This book only helps you with Interview questions. But if you to know the basics and fundamentals of Java then below are the list of books I will recommend. As Java 17 is out, and Java is releasing a new version every 6 months. All the books are finding it difficult to keep up pace with the Java versions. But the Java basics will remain the same and any book which covers Java 8 and book is good.
Table of Content
1 JAVA FUNDAMENTALS
2 JAVA MUST KNOW
3 ADVANCE JAVA
4 XML
5 Java EE
6 DESIGN PATTERN
7 UML
8 SPRING
9 DATABASE
10 UNIT TESTING
11 AGILE PROGRAMMING
12 EXERCISES
13 INTERVIEW PREPARATIONS
1 JAVA FUNDAMENTALS
Most of the questions in this chapter will be asked either in the written test, Telephonic interview or first stage interview. Most of the agents will ask questions from this chapter. So, make sure agents are happy and convinced with your answers, so that they forward your CV to the employers.
Q. What are the advantages of the object-oriented programming language (OOPL)
A. Object Oriented Programming Language is type of programming in which programmers define the data type of a data structure and the types of operations (functions) that can be applied to object. In this way an object includes both data and functions.
One of the principal advantages of OOPL techniques over procedural programming techniques is that they enable programmers to create modules that do not need to be changed when a new type of object is added. A programmer can simply create a new object that inherits many of its features from existing objects. This makes object-oriented programs easier to modify. Also, one can create real life objects like Animal, Dog, and Labrador etc.
Q. Is Java an OOPL? What are Advantages of Java Language?
A. Yes, Java is an OOPL. Advantages of Java are
Q. What are Inheritance, Encapsulation, and Polymorphism?
Aim: This question is mostly asked in written test or during telephonic interview.
A. Inheritance, Encapsulation & Polymorphism are 3 pillars of OOPL.
Polymorphism means the ability of a single variable of a given type to be used to reference objects of different types, and automatically call the method that is specific to the type of object the variable references. In a nutshell, polymorphism is a bottom-up method call. The benefit of polymorphism is that it is very easy to add new classes of derived objects without breaking the calling code that uses the polymorphic classes or interfaces.
Inheritance is the capability of a class to use the properties and methods of another class while adding its own functionality. For example, consider an employee records system. You could create a generic employee class with states and actions that are common to all employees. Then more specific classes could be defined for Permanent, commissioned and temporary employees. The generic class is known as the parent (or superclass or base class) and the specific classes as children (or subclasses or derived classes). The concept of inheritance greatly enhances the ability to reuse code as well as making design a much simpler and cleaner process.
There are two types of Inheritance
Encapsulation is the technique of making the fields in a class private and providing access to the fields via public methods. If a field is declared private, it cannot be accessed by anyone outside the class, thereby hiding the fields within the class. For this reason, encapsulation is also referred to as data hiding.
Q. What is static and dynamic binding?
A. Dynamic binding is also called as Late Binding. Dynamic Binding refers to the case where compiler is not able to resolve the call, and the binding is done at runtime only. Let's try to understand this in below example.
…
SuperClass superClass1 = new SuperClass();
SuperClass superClass2 = new SubClass();
…
superClass1.someMethod(); // SuperClass version is called
superClass2.someMethod(); // SubClass version is called
Here, we see that even though both the object references superClass1 and superClass2 are