Java

JDBC Interview Questions and Answers — step-by-step Programming tutorial on Progressive Robot

JDBC Interview Questions and Answers

URL: https://www.progressiverobot.com/jdbc-interview-questions-and-answers/ Welcome to JDBC Interview Questions and Answers. JDBC API is used to connect to relational databases and run SQL queries from Java Programs. In the last few articles, we learned about JDBC API and its important features. This article is aimed to provide some of the important JDBC Interview Questions with Answers to […]

Read more
How To Set Up a Kafka Consumer to Receive Data Through CLI — step-by-step Programming tutorial on Progressive Robot

How To Set Up a Kafka Consumer to Receive Data Through CLI

Learn how to create a Java program that consumes data from a Kafka topic using the Kafka client libraries. Understand how Kafka manages multiple consumers, tracks their progress, and manually reports consumer progress back to the cluster. Improve your Kafka skills with this step-by-step tutorial.

Read more
Tomcat DataSource JNDI Example in Java — step-by-step Programming tutorial on Progressive Robot

Tomcat DataSource JNDI Example in Java

URL: https://www.progressiverobot.com/tomcat-datasource-jndi-example-java/ Welcome to Tomcat DataSource JNDI Example Tutorial. We looked at the [JDBC DataSource](/community/tutorials/java-datasource-jdbc-datasource-example "JDBC DataSource Example – Oracle, MySQL and Apache DBCP Tutorial") in the last tutorial and learned how to use that in standalone java application. Tomcat DataSource JNDI ![tomcat datasource, jndi example, tomcat jndi, jndi tutorial](images/tomcat-datasource-jndi-example-java-section-1.png) Actual benefit of DataSource comes […]

Read more
How To Install Java with Apt on Ubuntu 18.04 — step-by-step Linux tutorial on Progressive Robot

How To Install Java with Apt on Ubuntu 18.04

In this guide, you will install various versions of the Java Runtime Environment (JRE) and the Java Developer Kit (JDK) using `apt` . You’ll install OpenJDK as well as official packages from Oracle. You’ll then select the version you wish to use for your projects. When you’re finished, you’ll be able to use the JDK to develop software or use the Java Runtime to run software.

Read more
json-simple example — step-by-step Programming tutorial on Progressive Robot

json-simple example

URL: https://www.progressiverobot.com/json-simple-example/ json-simple is a simple java toolkit for JSON. json-simple library is fully compliance with JSON specification (RFC4627). json-simple ![json-simple, json simple example, json example](images/json-simple-example-section-1.png) json-simple uses [Map](/community/tutorials/java-map) and [List](/community/tutorials/java-list) internally for JSON processing. We can use json-simple for parsing JSON data as well as writing JSON to file. One of the best feature […]

Read more
Java Object clone() Method - Cloning in Java — step-by-step Programming tutorial on Progressive Robot

Java Object clone() Method – Cloning in Java

Java Object class comes with native clone() method that returns the copy of the existing instance. To use java cloning, all you need is to implement the marker interface java.lang.Cloneable so that it won’t throw CloneNotSupportedException at runtime.

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

Thread Safety in Java

URL: https://www.progressiverobot.com/thread-safety-in-java/ Thread Safety in Java is a very important topic. Java provides multi-threaded environment support using Java Threads, we know that multiple threads created from same Object share object variables and this can lead to data inconsistency when the threads are used to read and update the shared data. Thread Safety ![thread safe, thread […]

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

AtomicInteger in Java

Today we will look into AtomicInteger in Java. Atomic operations are performed in a single unit of task without interference from other operations. Atomic operations are necessity in multi-threaded environment to avoid data inconsistency. AtomicInteger ![AtomicInteger, java atomicinteger, atomic integer](images/atomicinteger-java-section-1.png) Let's create a simple multi-threaded program where every thread increments the shared count variable 4 […]

Read more
Java Project Lombok — step-by-step Programming tutorial on Progressive Robot

Java Project Lombok

URL: https://www.progressiverobot.com/java-project-lombok/ Project Lombok is a very useful tool for java projects to reduce boiler plate code. Problem Statement !java project lombok In Java vs. other language debate, the first knock which you get from other language supporters is that Java requires lot of boiler plate code and you just cannot get over it, and […]

Read more
CHAT