Interview
- 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 […]
- 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 […]
- 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-6767b0e43a6ad807514270/] 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-6767b0e43ac4d748553432/] Output: Enter Array Size : 5 Enter Array […]
- 20 January
Java program to find minimum value in array
In this tutorial, Java program to find minimum value in an array. Here is simple algorithm to find minimum value in the array. Initialize sml with arr[0] i.e. first element in the array. If current element is less than sml, then set sml to current element. [crayon-6767b0e43b0f9595076525/] Output: Enter array Size : 3 Enter array […]
- 20 January
Java program to print Diamond pattern
In this tutorial, we will see java program to print diamond pattern. [crayon-6767b0e43b537785408294/] That’s all about printing diamond pattern in java.