In this post, we feature a comprehensive example of the Java Main Method – public static void main(String[] args) through a Java Hello World example. 1. Java Main Method Example – public static void main(String[] args) In every programming language, when a program starts the execution it has to start from somewhere. For Java, the entry point for a program ...
Read More »OOPS Concepts Java Tutorial
In this post, we feature a comprehensive OOPS Concepts Java Tutorial. We will take a look at the OOPS concepts in Java and provide code examples for each one of them. 1. Introduction Object-Oriented Programming System in Java, also known as OOPS, is a programming paradigm where the main concept of a program is based on objects that communicate with ...
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 »Singleton Class in Java Design Pattern – Best Practices with Examples
In this post, we feature a comprehensive Tutorial on Singleton Class in Java. Design Patterns in Java are incredibly popular among the software developers. One of the most common interview questions is the Singleton Design Pattern. So in this tutorial, I’ll summarize the best practices which will help developers dodge general issues and develop better applications. 1. What are Design ...
Read More »Java Servlet Set/Get Example
One of the main challenges for every beginner in the development world is to understand and assimilate how things works internally in a technology in order to create their own code. More than that, make this code working, flexible, standardized and functional for a project that, most of the times, is already running. Servlets are known for their complexities regarding ...
Read More »Java MongoDB Iterating through a Collection
Hello readers, in this tutorial, we will show how to iterate the documents of a Mongo collection using the Java driver. 1. Introduction If you have installed the MongoDB application (version 3.6.X) on Windows or Ubuntu operating system and you wish to learn this tutorial, then follow the below steps. It is very simple, but before moving further let’s take ...
Read More »Java MongoDB Select Collections Example
Hello readers, in this tutorial, we will show how to select or query the documents of a Mongo collection using the Java driver. 1. Introduction If you have installed the MongoDB application (version 3.6.X) on Windows or Ubuntu operating system and you wish to learn this tutorial, then follow the below steps. It is very simple, but before moving further ...
Read More »Java MongoDB Update Document Example
Hello readers, in this tutorial we will show how to update the documents of a Mongo collection using the Java driver. 1. Introduction If you have installed the MongoDB application (version 3.6.X) on Windows or Ubuntu operating system and you wish to learn this tutorial, then follow the below steps. It is very simple, but before moving further let’s take ...
Read More »