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 […]

Frequently asked Java String Programming Interview questions

In this article, we discuss 20 frequently asked String programming interview questions in Java. Here are the Frequently asked String programming interview questions :   Find all character permutations of a String in Java. (Solution)   Java program to check if two strings are anagrams (Solution)   How to check if a String is a […]