Programming

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
Mockito Mock Void Method — step-by-step Programming tutorial on Progressive Robot

Mockito Mock Void Method

URL: https://www.progressiverobot.com/mockito-mock-void-method/ Most of the times Mockito when() method is good enough to mock an object's behavior. But when we have to mock a void method, we can't use when(). Mockito Mock Void Method Mockito provides following methods that can be used to mock void methods. doAnswer(): We can use this to perform some operations […]

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

Serialization in Java – Java Serialization

URL: https://www.progressiverobot.com/serialization-in-java/ Serialization in Java was introduced in JDK 1.1 and it is one of the important feature of [Core Java](/community/tutorials/core-java-interview-questions-and-answers "Core Java Interview Questions and Answers"). Serialization in Java ![serialization in java, java serialization, what is serialization in java, serializable in java](images/serialization-in-java-section-1.png) Serialization in Java allows us to convert an Object to stream that […]

Read more
static keyword in java — step-by-step Programming tutorial on Progressive Robot

static keyword in java

URL: https://www.progressiverobot.com/static-keyword-in-java/ static keyword in Java is used a lot in java programming. Java static keyword is used to create a Class level variable in java. static variables and methods are part of the class, not the instances of the class. static keyword in java ![java static, static keyword in java](images/static-keyword-in-java-section-1.png) Java static keyword can […]

Read more
Thread Safety in Java Singleton Classes — step-by-step Programming tutorial on Progressive Robot

Thread Safety in Java Singleton Classes

Singleton is one of the most widely used creational design pattern to restrict the object creation by applications. In real world applications, resources like Database connections or Enterprise Information Systems (EIS) are limited and should be used wisely to avoid any resource crunch. To achieve this, we can implement Singleton design pattern to create a wrapper class around the resource and limit the number of object created at runtime to one.

Read more
Información sobre tipos de datos en Go — step-by-step Programming tutorial on Progressive Robot

Información sobre tipos de datos en Go

En los tipos de datos se especifica el tipo de valores que se almacenarán en determinadas variables cuando escriba un programa. En ellos también se determinan las operaciones que se pueden realizar en los datos. En este artículo, repasaremos los tipos de datos importantes…

Read more
Entendendo mapas em Go — step-by-step Programming tutorial on Progressive Robot

Entendendo mapas em Go

A maioria das linguagens de programação modernas tem o conceito de um tipo dicionário ou um tipo hash. Esses tipos são comumente usados para armazenar dados em pares com uma chave que mapeia um valor. Em Go, o tipo de dados mapa é o tipo no qual a maioria dos programadores…

Read more
What is PHP? — step-by-step Programming tutorial on Progressive Robot

What is PHP?

PHP is a general-purpose programming language created by Rasmus Lerdorf in 1994. Originally designed to facilitate building web pages with dynamic components, PHP has seen many changes and improvements since its first release. These changes, along with the rise in popularity of WordPress, a free and open-source content management system written in PHP, have helped it become one of the most popular programming languages for the web.

Read more
CHAT