Home » Tag Archives: Java

Tag Archives: Java

Java Classes and Objects Tutorial

Java language has object-oriented features to create classes and objects. In this tutorial, how to develop Java classes and instantiate objects from java classes is discussed in detail. Table Of Contents 1. Overview 2. Java Classes and Objects Tutorial 2.1. Prerequisites 2.2. Download 2.3. Setup 2.4. Java Classes and Objects 2.5. BestPractices 2.6. Error Handling 2.7. Code Conventions 3. Download ...

Read More »

Java Immutable Objects Example

1. Introduction In programming, an object is considered immutable if its state cannot change after it is created. Java not only supports immutable objects but as a best practice, they should be widely used. In this post, we will take a look at how to create immutable objects, their use cases and some examples of immutable Classes. The technologies that ...

Read More »

How to Create and Run Your First Java Program

1. Introduction This is an in-depth article on how to create and run your first java program. Java compiler is used to compile java code. Java class is the output of the compilation. To execute the program you need java runtime virtual machine. 2. Run Your First Java Program 2.1 Prerequisites Java 7 or 8 is required on the linux, ...

Read More »

Java HashMap vs TreeMap Example

1. Introduction A very important data structure in programming is the Map which is used for extremely fast lookups. In this post, we will take a look at two implementations of the Map data structure in Java, the HashMap and TreeMap classes. The main difference between those two implementations is that the HashMap offers better lookup and insertion times but ...

Read More »

Java ArrayList vs LinkedList Example

1. Introduction One of the most commonly used data structures in programming is the Array. Java comes with two implementations of the Array data structure, the ArrayList and LinkedList classes. In a nutshell, the ArrayList is a resizable-array implementation, whereas the LinkedList is a doubly-linked list implementation. In this post, we will cover the differences between the methods and time ...

Read More »

Java public static void main(String[] args) Example

1. Introduction In every programming language, when a program starts the execution it has to start from somewhere. For Java, the entry point for a program is the main method. In this post, we will examine this very important method and learn how to use it to start simple programs. The technologies that we will use in the code examples ...

Read More »

Java OOPS Concepts Tutorial

1. Introduction Object-Oriented Programming System, also known as OOPS, is a programming paradigm where the main concept of a program is based on objects that communicate with each other. OOPS has become the most popular programming paradigm for large and complex programs. Java is one of the most widely used OOPS languages. In this post, we will take a look ...

Read More »

Spring Boot @CrossOrigin Annotation Example

Cross-origin resource sharing (CORS) is a standard protocol that defines the interaction between a browser and a server for safely handling cross-origin HTTP requests. Simply put, a cross-origin HTTP request is a request to a specific resource, which is located at a different origin, namely a domain, protocol and port, than the one of the client performing the request. For ...

Read More »

Scala Tutorial for Java Developers

1. Introduction In this lesson, we will look at some excellent examples with which Java programmers can get started with Scala very fast and learn some important concepts that will help them call themselves as Scala professionals in a very short time. Well, the biggest challenge for any programmer, may he be comfortable with Java, Kotlin, Python or any other ...

Read More »

Selenium Cucumber Tutorial

This article explores the integration of selenium with cucumber and how we can leverage them to achieve automated acceptance testing. 1. Selenium Cucumber Tutorial – Introduction Selenium is used to automate browsers. Selenium WebDriver has found its place in test automation for web applications. It is used to create robust, browser-based regression automation suites and tests. It can be used ...

Read More »