Java2Blog
  • Home
  • Core Java
  • Tutorials
    • Spring
    • Spring Boot
    • Spring MVC
    • Java 8
    • Hibernate
  • Categories
    • Interview Questions
    • Spring Frameworks
    • Core java
    • Python
    • C++
  • NM
close
import_contacts

Java Tutorials

  • Core Java
  • Java Interview questions
  • Java 8 Stream
  • Java interview programs
import_contacts

Data structure and algorithm

  • Data structure in java
  • Data structure interview questions
import_contacts

Spring tutorials

  • Spring tutorial
  • Spring boot tutorial
  • Spring MVC tutorial
  • Spring interview questions

Core java

  • Java 8 Lambda Expression using Comparator
    Java 8
    30 August

    Java 8 Lambda Expression examples using Comparator

    Java 8 has made comparator more powerful using Lambda Expression. It has introduced many new APIs for Comparator. Let’s go through some new features of the Comparator using Lambda expression.Let’s create a very simple class called Employee: [crayon-6a29b647132d5540180044/] Sort Employee list by name in classic way: We will sort employee list in classic way [crayon-6a29b647132e3251277916/] […]

    Read More
  • Core Java interview Exception Handling
    17 July

    How to create custom exception in java

    In this post, we will see how to create custom exception in java. It is very simple to create custom exception in java. You just need to extends Exception class to create custom exception. Lets understand this with example. You have list of counties and if You have “USA” in list of country, then you […]

    Read More
  • Core java
    17 July

    Praktičen vodič za casino online: registracija, bonus in namigi

    Ustvarjanje računa v spletni igralnici je hitro, vendar natančno vedenje, kaj pričakovati na vsakem koraku, prihrani čas in frustracije. V pričujočem vodiču vam bomo predstavili korake za registracijo pri casino online Betano, kako izkoristiti Betano bonus ter pomembne podrobnosti, ki jih morate vedeti. Before You Start Prepričajte se, da ste stari vsaj 18 let. Pripravite […]

    Read More
  • Java String interview questions
    Interview Questions String Core Java interview Interview
    15 July

    Java String Interview questions and answers

    In this post, we will see interview questions on java String. String is most important data type which we use in our programs very often. 1. Why String is declared final or immutable in java? There are various reasons to make String immutable. String pool Thread Safe Security Class Loading Cache hash value You can […]

    Read More
  • Algorithm Interview Core Java interview String
    15 July

    Find all Permutations of a String in java

    In this post, we will see how to find all permutations of String in java. We will use a very simple approach to do it. Take out first character of String and insert into different places of permutations of remaining String recursively. Lets say you have String as ABC. So we take out A from […]

    Read More
  • Java Design Patterns
    14 July

    How to use connection pool using service locator design Pattern in java

    In this post, you will learn about the Connection Pool. This post is intended by java application development experts for entire development community to let people learn and acknowledge about Connection Pool and how to use its object using Service Locator design pattern. Introduction Connection pool is a mechanism which applicable for all technologies in […]

    Read More
  • Core Java interview Exception Handling
    14 July

    Difference between checked and unchecked exception in java

    In this post, we will see difference between checked and unchecked exception in java. It is important question regarding exceptional handling. What is Exception? Exception is unwanted situation or condition while execution of the program. If you do not handle exception correctly, it may cause program to terminate abnormally. What is checked exception? Checked exceptions […]

    Read More
  • Core Java interview String
    13 July

    Difference between StringBuffer and StringBuilder in java

    In this post, we will see difference between StringBuffer and StringBuilder in java StringBuffer vs StringBuilder Parameter StringBuffer StringBuilder Thread-safe StringBuffer is thread safe. Two threads can not call methods of StringBuffer simultaneously. StringBuilder is not thread safe, so two threads can call methods of StringBuilder simultaneously. Performance It is less performance efficient as it […]

    Read More
  • Difference between CountDownLatch and CyclicBarrier
    Concurrent APIs Multithreading Core Java interview Interview
    11 July

    Difference between CountDownLatch and CyclicBarrier in java

    In this post, we will see difference between CountDownLatch and CyclicBarrier in java. Lets first see similarities among them. Both wait for specific number of threads or tasks to finish. Lets see differences between CountDownLatch and CyclicBarrier. CountDownLatch vs CyclicBarrier Parameter CountDownLatch CyclicBarrier Reuse It can not be reused once count reaches 0 It can […]

    Read More
  • keyboard_arrow_left Previous
  • 1
  • …
  • 669
  • 670
  • 671
  • 672
  • 673
  • …
  • 690
  • Nextkeyboard_arrow_right

Newsletter


Let’s be Friends

© 2020-22 Java2Blog Privacy Policy