Java Articles

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 11, 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