LearnJava

Your one stop for all Java related resources

  • Home
  • Testimonials
  • Services
  • Blog
    • Java Tutorial
    • Java 8
    • Java 9
    • Java 10
    • Java examples
    • Java Interview Questions
    • Spring and SpringBoot
    • JPA, Hibernate and JDBC
    • REST
    • Unit Testing
    • Tomcat, Eclipse and Maven
    • Git and Github
    • Python
  • Courses
  • Contact

Month: August 2018

Collections FrameworkJava Interview Questions

What is the difference between a Set and List?

Posted By admin

A very common question asked in Java interviews is to explain the difference between a Set and a List. So,in this post I’m going to explain this in detail.

read more
java-date-handling-examples

How to find the number of days between two Dates

Posted By admin

In this post, I am going to demonstrate how you can find the number of days between two dates. The […]

read more
Misc-Java-Examples

How to find the factorial of a number

Posted By admin

In this post, I will be showing you how to find the factorial of a number in Java. The method […]

read more
Java Interview QuestionsJava_Language_Features

Java Exception handling explained

Posted By admin

In this blog post, I will explain how Java’s exception handling works.   What are the types of errors in […]

read more
java-string-examplesStrings

How to reverse a String in Java

Posted By admin

In this post, I will demonstrate how to reverse a String in Java. You can do this in the most […]

read more
java-string-examplesStrings

How to find the number of words in a Sentence

Posted By admin

In order to find the number of words in a sentence, you can use the String.split method. The following code […]

read more
Core JavaJava Interview Questions

Object oriented principles in Java Explained in Short

Posted By admin

As you probably know, Java is an Object-oriented language. There are some fundamental object-oriented principles that are supported by Java. […]

read more
Misc-Java-Examples

How to find the largest number in an array

Posted By admin

The following code demonstrates how to find the largest number in an array:     So the for loop iterates […]

read more
java-string-examplesStrings

How to check if a String has only alphabets

Posted By admin

You can use Java regular expressions to check if a String has only alphabets as follows:   The above code […]

read more
java-string-examplesStrings

How to replace a character in a String with another character

Posted By admin

There is a replace method provided by the String class that can be used to replace a character in a […]

read more

Posts navigation

Older posts

Recent Posts

  • How to Containerize a Spring Boot Application Using Docker September 28, 2024
  • Jackson ObjectMapper with examples September 7, 2024
  • Git Merge Rebase and Squash Explained August 31, 2024
  • Explaining the Record Class in Java August 24, 2024
  • Java 17 Features August 4, 2024

Archives

  • September 2024
  • August 2024
  • September 2023
  • July 2023
  • May 2023
  • November 2022
  • October 2022
  • February 2022
  • January 2022
  • December 2021
  • July 2021
  • June 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • July 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
  • February 2019
  • January 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018

Connect With Us On Facebook!

LearnJava

Archives

  • September 2024 (2)
  • August 2024 (3)
  • September 2023 (2)
  • July 2023 (1)
  • May 2023 (1)
  • November 2022 (1)
  • October 2022 (1)
  • February 2022 (2)
  • January 2022 (4)
  • December 2021 (5)
  • July 2021 (2)
  • June 2021 (1)
  • April 2021 (4)
  • March 2021 (5)
  • February 2021 (3)
  • January 2021 (1)
  • December 2020 (4)
  • September 2020 (2)
  • August 2020 (3)
  • July 2020 (4)
  • June 2020 (8)
  • May 2020 (8)
  • April 2020 (8)
  • March 2020 (6)
  • February 2020 (6)
  • January 2020 (6)
  • December 2019 (9)
  • November 2019 (2)
  • October 2019 (5)
  • September 2019 (5)
  • August 2019 (9)
  • July 2019 (10)
  • June 2019 (10)
  • May 2019 (16)
  • April 2019 (12)
  • March 2019 (11)
  • February 2019 (12)
  • January 2019 (23)
  • December 2018 (10)
  • November 2018 (10)
  • October 2018 (10)
  • September 2018 (13)
  • August 2018 (13)
Copyright © 2025 LearnJava
Theme by Adazing