Java Tutorials 1. Core Java Tutorial 2. Java Collections Framework Tutorial 3. Java 8 Tutorial 4. Java IO Tutorial 5. Date Time
Continue readingCategory: java
How to Make Singleton Class In Java
package com.javavogue; public class SingletonDemo { static SingletonDemo obj; private SingletonDemo(){ } public static SingletonDemo getInstance(){ if(obj!=null){ return obj; }
Continue readingHow to print array without using loop in java
How to print array in java without loop is frequently asked question in interview. We can print array without using
Continue readingProgram For nth Fibonacci Number in Java
The Fibonacci numbers are the numbers in the following integer sequence. 0, 1, 1, 2, 3, 5, 8, 13, 21,
Continue readingAccess and Non-Access Modifiers in java
Modifiers are keywords that you add to those definitions to change their meanings. There are two types of modifiers in
Continue readingSorting Algorithms – Java Example Programs
1 Comparison of algorithms 2 Popular sorting algorithms 2.1 Simple sorts 2.1.1 Insertion sort 2.1.2 Selection sort 2.2 Efficient sorts
Continue readingJava Memory Leak Cause
In computer science, a memory leak is a type of resource leak that occurs when a computer program incorrectly manages
Continue readingHow To Convert Integer To String In Java
public class IntToString { public static void main(String[] args) { int num = 10; // method first String str1 =
Continue readingHow to find all occurrences of string in a string Java
Find all occurrences of string in a string. for this we will use one loop and indexof() method public class
Continue readingCheck Array Element Even or Odd
Check Array Element Even or Odd In Java public class PrintEvenOrOdd { public static void main(String[] args) { int arr[]={10,2,5,21,37,48};
Continue reading