Top 20 Most Common Java Interview Questions You Need To Know

Here are 20 most common Java Interview Questions you should know and how to Answer them : 1. What is the difference between ArrayList and LinkedList in Java? 2. How to implement inheritance in Java? 3. How to override a method in Java? 4. How to convert a String to an int in Java? 5. […]

Top 20 Java String Interview Questions and Answers

This article provides 20+ Java String Interview Questions and Answers. String related interview questions come up frequently in Java interviews. So, we hope these help you prepare well for the same. Java String Interview questions & answers: What is String in Java?   What are different ways to create Strings?   What is String constant […]

Java 8

How to find date time differences in Java 8

In Java8, we can use following classes to find date time differences : Period Duration ChronoUnit   Period We can use Period class to calculate difference in year, month, days between two Dates. Here is an example of using Period class methods getYears(), getMonths() and getDays() to calculate age of a person. package com.topjavatutorial; import […]

Java 8 Interview Questions – Part 2

In this article, we will discuss frequently asked Java 8 Interview Questions and Answers. You can refer the Part 1 using this link : Java8 Interview Questions : Part 1   Java 8 Interview questions 1. What are Static Interface Methods in Java 8 ? How are static Interface methods invoked ? JDK 8 added […]

Java Object Oriented Programming interview questions and answers

In this post, we will cover some of the commonly asked interview questions on Object Oriented Programming(OOP) concepts. These are frequently asked in developer and architect level java interviews alike. 1. What is Object Oriented Programming? Object-oriented programming (OOP) is a programming paradigm based on the concept of “objects”, which may contain data, in the […]