• Java Interview questions
    22 May

    100+ Core Java Interview Questions and Answers for 2022

    Introduction In this post we will look into the most commonly asked Interview questions related to Java. We will take a look at the most common topics in Java for interviews and provide the answer to the questions in detail with examples to help you ace your next interview. We recommend following this post step […]

  • 12 August

    Memoization example in java

    If you want to practice data structure and algorithm programs, you can go through Java coding interview questions. In this tutorial, we will see about Memoization example in java. Let me start with the question. Would you like to do same task again and again when you know that it is going to give you same […]

  • 04 August

    LRU cache implementation in java

    If you want to practice data structure and algorithm programs, you can go through Java coding interview questions. In this post, we will see LRU cache implementation in java. Problem Design a Least recently used cache implementation in java. It should have below properties. bounded size: It should have bounded size to take care of memory limits. […]

  • 01 August

    Count Factorial Trailing Zeroes in java

    In this tutorial, we will see how to count trailing zeros in factorial of a number in java. Problem Count number of zeros in factorial of number in java. For example: Factorial of 6 is 720, so a number of trailing zeros is 1. Factorial of 14 is 87 178 291 200, so a number […]

  • 14 June

    Longest Substring Without Repeating Characters

    If you want to practice data structure and algorithm programs, you can go through Java coding interview questions. In this tutorial, we will see Find Longest Substring Without Repeating Characters in java. Problem We need to find Longest Substring Without Repeating Characters Solution Brute force solution Find all the substring and check the Longest Substring Without […]

  • 24 May

    Collections in java

    In this tutorial, we will see  about Collections in java. Collection framework is core part of java programming language. It is used in almost all the applications. Collections framework provides a way to store and retrieve the collection of elements. This framework has many interfaces and classes which makes programmer life easy. Let’s go through […]

  • Java 8 Tutorial
    20 May

    Java 8 tutorial

    In this post, we will see about Java 8 tutorial. I have written a lot of tutorials on Java 8. This is index post for all Java 8 posts. Java 8 has lots of new features which will change the way you do programming. Here is a list of features you need to know to […]

  • 20 January

    Java program to count number of words in sentence

    In this tutorial, we will see a simple java program to count number of words in sentence. [crayon-62b8e5b4aa73d413045814/] Output: Enter a Sentence : Java2Blog is a technical blog. Total number of words are 5 That’s all about Java program to count number of words in sentence.

  • 20 January

    Java program to find largest number in array

    In this tutorial, Java program to find the largest number in array. Here is simple algorithm to find larget element in the array. Initialize lrg with arr[0] i.e. first element in the array. If current element is greater than lrg, then set lrg to current element. [crayon-62b8e5b4aac59220352518/] Output: Enter Array Size : 5 Enter Array […]