JAVA Articles

10 Best Java Frameworks to Use in 2020

Java is a robust language and when combined with a framework, Java can provide the best solutions for any domain be it e-commerce, banking, cloud computing, finance, big data, stock market, IT, and more.If you are just starting with Java, see Java live in action with this blog that will run you through all the important concepts you need to know to start working with the frameworks.What Are Java F

Java October 25, 2020
MVC Design Pattern - JSP Example

In the previous tutorial, I explained MVC vs MVVM. We learnt ha every software application has its own ways in which they are designed. MVC simply stands for model view controller and it is one of the commonly used design patterns. In this tutorial, we shall learn how to write a program in JSP while following the MVC pattern.MVC design pattern is used to separate the application’s concerns i.e.

Java July 30, 2020
MVC Design Pattern - Java Example

In the previous tutorial, I explained MVC vs MVVM. We learnt ha every software application has its own ways in which they are designed. MVC simply stands for model view controller and it is one of the commonly used design patterns. In this tutorial, we shall learn how to write a program in Java while following the MVC pattern.MVC design pattern is used to separate the application’s concerns i.e.

Java July 29, 2020
How to Create Read only file or Mark a file as Read only in Java

This tutorial shows how to create a read only file or mark an existing file as read only.Create Read Only File in Javaimport java.io.IOException;import java.nio.file.FileAlreadyExistsException;import java.nio.file.Files;import java.nio.file.Path;import java.nio.file.Paths;import java.nio.file.attribute.FileAttribute;import java.nio.file.attribute.PosixFilePermission;import java.nio.file.attribute

Java May 09, 2020
How to Create Temp File or Directory in Java

This tutorial shows how to create temp file and temp directory using javaCreate Temp Directory in Javaimport java.io.IOException;import java.nio.file.Files;import java.nio.file.Path;public class TempDirectory{    public static void main(String[] args) {        try {            Path tempDirPath = Files.createTempDirectory("tempDir"); 

Java May 09, 2020
Java Database Connectivity (JDBC) with MySQL Tutorial

Hi, and welcome to this tutorial. We are going to learn what is JDBC and how to connect to the database with Java.At some point, you will need to store data for your applications. You can save the data in a file system or use a database system. There is numerous reason why you should consider using a database system.Why use Databases?You can query data in a database.You can look up data from a dat

Java December 29, 2019
Swap Two Numbers Without a Third Variable in Java

Swapping numbers will be helpful when creating large Java programs. Swapping is frequently used in sorting algorithms such as bubble sort, quick sort, etc.Swapping is the act of exchanging values of variables. In this article, I am going to teach you how to swap two numbers without using a third (temp) variable.Swap using multiplication and divisionpublic class Swap {    public static void main(

Java August 22, 2019
Java ArrayList for Absolute Beginners with Examples

ArrayLists will be helpful when creating large Java programs. In this article, I am going to teach you what a Java ArrayList is, how to use it, and what operations you can apply to it.What is an ArrayList?In Java, ArrayList is simply used to store dynamically sized collections of items. ArrayList stores items of the same data type. Remember that everything in Java is an object and when creating an

Java August 01, 2019
Comparison of Java with other Programming Languages

Java is both a language and a platform. It is one of the most popular and widely used programming languages.  Java is a platform because it provides an environment that helps to develop and run programs written in the Java programming language. Java programming language is fast, reliable, and secure. It employs the object-oriented programming paradigm and therefore, can be used to model real-

Java July 24, 2019
The Four Main Object Oriented Programming Concepts in Java With Examples

Hi buddy, today I will explain what OOP (Object-oriented programming) in Java is. Java is one of the most popular and widely used programming language and platform. In my article The Best Way to Learn Java Programming Language, I said that it could be tricky to learn Java because you will encounter complex concepts like objects, polymorphism, inheritance, etc. Now I will help you understand these

Java July 24, 2019
What Programming Languages Should you Learn First

There is a long list of about 256 programming languages. The languages are classified into groups according to the way or style of programming (paradigms). So with this long list, many beginners face challenges when choosing which language to learn first. Another question is what programming languages are used in big companies like Google, Facebook, and Amazon, etc. Their worry is learning a langu

Java July 10, 2019
The Best Way to Learn Java Programming Language

Java is simple to learn when you know other programming languages like C and C++. However, some people argue that Java Programming language is difficult to learn while others think it takes the same learning curve similar to other programming languages like Python, PHP, and Ruby on Rails, etc. Java is a prevalent programming language. It is very stable, versatile, reliable, and compatible and run

Java July 07, 2019
Pages