Java

Log4j Levels Example - Order, Priority, Custom Filters — step-by-step Programming tutorial on Progressive Robot

Log4j Levels Example – Order, Priority, Custom Filters

URL: https://www.progressiverobot.com/log4j-levels-example-order-priority-custom-filters/ If you have used log4j, you will notice that there are many methods to log messages. For example: logger.trace("My Log message"); logger.debug("My Log message"); logger.info("My Log message"); Actually they corresponds to log4j levels. Log4j Levels Log4j provides many logging levels. Below is the complete list. TRACE: The TRACE Level designates finer-grained informational events […]

Read more
Java JSON Example — step-by-step Programming tutorial on Progressive Robot

Java JSON Example

URL: https://www.progressiverobot.com/java-json-example/ Welcome to the Java JSON Example Tutorial. JSON (JavaScript Object Notation) is text-based lightweight technology for generating human readable formatted data. JSON represent object data in the form of key-value pairs. We can have nested JSON objects too and it provides an easy way to represent arrays also. Java JSON ![java json, java […]

Read more
Java File Path, Absolute Path and Canonical Path — step-by-step Programming tutorial on Progressive Robot

Java File Path, Absolute Path and Canonical Path

URL: https://www.progressiverobot.com/java-file-path-absolute-canonical/ Today we will look into the Java file path. Java File path can be abstract, absolute or canonical. Java File Path java.io.File contains three methods for determining the file path, we will explore them in this tutorial. getPath(): This file path method returns the abstract pathname as String. If String pathname is used […]

Read more
JUnit5 Tutorial — step-by-step Programming tutorial on Progressive Robot

JUnit5 Tutorial

URL: https://www.progressiverobot.com/junit5-tutorial/ JUnit5 Tutorial In this Junit tutorial, we will introduce basics of JUnit5 and its new features using examples. In Java world, JUnit is one of the popular framework used to implement unit tests against java code. JUnit primarily helps developers to test their code on the [JVM](/community/tutorials/java-jvm-memory-model-memory-management-in-java) by themselves. JUnit5 Architecture JUnit Platform […]

Read more
How To Configure YaCy as an Alternative Search Engine or Site Search Tool — step-by-step Linux tutorial on Progressive Robot

How To Configure YaCy as an Alternative Search Engine or Site Search Tool

YaCy is an alternative, peer-to-peer based search engine. It can be used as an alternative to popular engines like Google, Yahoo, etc. In this guide, we will discuss how to install and configure this tool on an Ubuntu 12.04 VPS. We will then discuss how you can contribute to the global search indexes, or use YaCy to provide a site search tool for your domain.

Read more
Relational Operators in Java — step-by-step Programming tutorial on Progressive Robot

Relational Operators in Java

URL: https://www.progressiverobot.com/relational-operators-in-java/ Relational Operators in Java are used to comparing two variables for equality, non-equality, greater than, less than, etc. Java relational operator always returns a boolean value – true or false. Relational Operators in Java Java has 6 relational operators. \== is the equality operator. This returns true if both the operands are referring […]

Read more
Compare Functional Programming, Imperative Programming and Object Oriented Programming — step-by-step Programming tutorial on Progressive Robot

Compare Functional Programming, Imperative Programming and Object Oriented Programming

As Oracle Corporation has introduced some Functional constructs in Java SE 8, now-a-days most of the Interviewers are interested to ask some questions about Functional Programming. As a Java/Groovy/Scala Developer or any Functional Programming Developer, we should learn the following questions and answers to clear interviews: … And More What is Functional Programming? What are […]

Read more
How To Install Apache Tomcat 9 on Debian 10 — step-by-step Linux tutorial on Progressive Robot

How To Install Apache Tomcat 9 on Debian 10

Apache Tomcat is a web server and servlet container that is used to serve Java applications. Tomcat is an open source implementation of the Java Servlet and JavaServer Pages technologies, released by the Apache Software Foundation. This tutorial covers the basic installation…

Read more
Priority Queue Java — step-by-step Programming tutorial on Progressive Robot

Priority Queue Java

URL: https://www.progressiverobot.com/priority-queue-java/ Every now and then we need to process items of a queue in a particular order. Priority queue is a Data Structure that does the job. Java priority queue is different from “normal” [queue](/community/tutorials/java-queue). Instead of “First-In-First-Out”, it retrieves the items in order of their priority. Priority Queue Java The java.util.PriorityQueue class, provides […]

Read more
CHAT