Programming

Observer Design Pattern in Java — step-by-step Programming tutorial on Progressive Robot

Observer Design Pattern in Java

URL: https://www.progressiverobot.com/observer-design-pattern-in-java/ Observer Pattern is one of the behavioral design pattern. Observer design pattern is useful when you are interested in the state of an object and want to get notified whenever there is any change. In observer pattern, the object that watch on the state of another object are called Observer and the object […]

Read more
How to Return an Array in a C++ Function — step-by-step Programming tutorial on Progressive Robot

How to Return an Array in a C++ Function

URL: https://www.progressiverobot.com/return-array-in-c-plus-plus-function/ Introduction In this tutorial, we are going to understand how we can return an array from a function in C++. Methods to Return an Array in a C++ Function Typically, returning a whole array to a function call is not possible. We could only do it using [pointers](/community/tutorials/pointers-in-c-and-c-plus-plus). Moreover, declaring a function with […]

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

JDBC Tutorial

URL: https://www.progressiverobot.com/jdbc-tutorial/ Welcome to JDBC tutorial. Java DataBase Connectivity (JDBC) is one of the most widely used API in enterprise applications. This is because most of the applications use some sort of database connectivity. I have recently posted a lot of JDBC tutorials related to basic JDBC, DataSource and it's integration with Spring Framework. JDBC […]

Read more
How To Update Database Records in Laravel Eloquent — step-by-step Programming tutorial on Progressive Robot

How To Update Database Records in Laravel Eloquent

In a previous section of this series, you updated an existing Artisan command in order to support the new lists feature. Although there are commands to insert and delete links, the demo application currently doesn’t have a command to edit existing links. This can be useful to move links between lists, for instance, or update a link description. In this guide, you’ll create a new Artisan command to update existing links in the database.

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

Garbage Collection in Java

Garbage collection in java is one of the advance topic. Java GC knowledge helps us in fine tuning our application runtime performance. Garbage Collection in Java In Java, the programmers don't need to take care of destroying the objects that are out of use. The Garbage Collector takes care of it. Garbage Collector is a […]

Read more
Mockito Mock Static Method - PowerMock — step-by-step Programming tutorial on Progressive Robot

Mockito Mock Static Method – PowerMock

URL: https://www.progressiverobot.com/mockito-mock-static-method-powermock/ Mockito allows us to create mock objects. Since static method belongs to the class, there is no way in Mockito to mock static methods. However, we can use PowerMock along with Mockito framework to mock static methods. Mockito Mock Static Method using PowerMock PowerMock provides different modules to extend [Mockito framework](/community/tutorials/mockito-tutorial) and run […]

Read more
How to Compile and Run Java Program from another Java Program — step-by-step Programming tutorial on Progressive Robot

How to Compile and Run Java Program from another Java Program

Have you ever thought if it's possible to compile and run a java program from another java program? We can use Runtime.exec(String cmd) to issue commands to the underlying operating system. We will use the same approach to compile and run a java program from another java program. Compile and Run Java Program from another […]

Read more
CHAT