r/javaexamples • • Dec 09 '22

3 ways to parse JSON in Java

5 Upvotes

Parsing JSON is a common task for Java programmers, but many of them don't know how to do it because JDK API doesn't provide a standard JSON parser, but you don't need to worry. There are a lot of excellent JSON parsing libraries like Jackson, Gson, and json-simple which you can use to parse JSON. In this tutorial, I have shared how to use them to parse a JSON String in Java

read more - https://javarevisited.blogspot.com/2022/03/3-examples-to-parse-json-in-java-using.html


r/javaexamples • • May 30 '21

JSON Web Token Decoder

5 Upvotes

A group of 4 Java programmers got together to build a Java desktop application using OpenJDK 11 with OpenJFX 11 and this is what we built:

This is a JSON Web Token Decoder; it takes as input a JWT and decodes the header and payload sections, displaying them in two seperate fields as JSON objects.

A first project for the group who are now moving on to build something else.

The source code for JWTDecoder can be found here.

A short YouTube video of the application in action can be found here.

And, if anyone wants the MSI or Deb installer to install the application on their machine then these can be found here.


r/javaexamples • • Mar 30 '21

Java Developer Interview Questions

5 Upvotes

Just wanted to share interview questions that are being asked from experienced people having more than 3 years of experience.

Java Developer Interview Questions

Let me know in the comments what is your favourite question out of these?


r/javaexamples • • Sep 15 '20

Difference between PATH & CLASSPATH in java & Set JAVA_HOME , path, clas...

5 Upvotes

r/javaexamples • • Jun 02 '20

Tricks.

5 Upvotes

Is there any trick to learn java the most effective way? I am facing problem with problem solving and also applying logic!! Please help.


r/javaexamples • • Apr 22 '20

My first Java program

5 Upvotes

I didn't want to do a hello world as my first Java program, so I followed a tutorial and I teached myself a little bit everywhere on the internet to make a bad version of the famous Cookie Clicker game.

For the few intrepid ones here:

https://pastebin.com/rXgkhx2C


r/javaexamples • • Aug 26 '19

Simple and Easy way to connect MongoDB Atlas with Spring Boot - Sample Code on GitHub

5 Upvotes

In this brief article, we will see how we can use MongoDB Atlas with Spring Boot. MongoDB Atlas is Database as a Service. With database available on the cloud you can scale it as and when you need.

https://www.opencodez.com/java/use-mongodb-atlas-with-spring-boot.htm


r/javaexamples • • Jul 21 '19

Top 5 Frameworks for Java Developers in 2019

5 Upvotes

Java is one of the widely used programming languages. There are many useful Java frameworks available to write any Java-based web and mobile apps, REST APIs and Microservices easily.

Frameworks are useful to focus on the main business logic of an application instead of writing other basic functionalities from scratch. These frameworks let you start a project easily and quickly. Java frameworks are available for both frontend and backend. Front end frameworks are for dealing with UI functionalities and backend frameworks are for server-side tasks.

There are plenty of frameworks and it is really not easy to find out the perfect one. In this post, we are listing down five mostly used Java frameworks with pros and cons for each. Go with a framework that fits your project requirement, not if it is used by everyone.

Let’s take a look at the list :

https://www.opencodez.com/java/top-5-frameworks-java-developers.htm


r/javaexamples • • Oct 26 '18

How to iterate ArrayList in Java?

5 Upvotes

r/javaexamples • • Apr 18 '18

Scripting with Java 10 and JShell

5 Upvotes

A collection of samples for scripting with Java 10 and JShell.

The samples on Github include:

  • encoding (Base64, Hex, ...)

  • files (working with files and folders)

  • httpclient (working with the new http client)

  • misc (params via system properties, ...)

Blog Post: Scripting with Java 10 and JShell


r/javaexamples • • Jun 10 '16

[Request] Example for RMI

5 Upvotes

I need a good example of Java RMI (Remote Method Invocation) to understand it properly. Thanks.


r/javaexamples • • Mar 30 '16

Daemon Thread in java with sample code examples

5 Upvotes

r/javaexamples • • Jul 19 '26

Looking for Java learners to study together! ☕💻

Thumbnail reddit.com
4 Upvotes

r/javaexamples • • Sep 04 '24

4 ways to iterate over Map in Java

4 Upvotes

r/javaexamples • • Sep 03 '24

10 ways to use Stream in Java

4 Upvotes

r/javaexamples • • Aug 28 '24

10 Examples of ArrayList in Java

4 Upvotes

ArrayList is an important class and every Java developer should be aware of. Here are 10 examples of ArrayList in Java to learn this class better https://javarevisited.blogspot.com/2011/05/example-of-arraylist-in-java-tutorial.html


r/javaexamples • • Mar 13 '23

JavaFX FXML tutorial for beginners

4 Upvotes

Screen recording about the FXML language for JavaFX https://www.youtube.com/watch?v=kL-Q_H250Fc


r/javaexamples • • Nov 17 '21

Build Java 11 Rest API web service

4 Upvotes

https://youtu.be/kJ-Ps2z9nB8

A Rest API web service built using Java 11, JakartaEE, and Maven. Deploy the completed web service to a Glassfish 6 webserver running on the localhost. Demonstrates the build of 4 API GET methods. Perfect if you are looking to get started.


r/javaexamples • • May 12 '20

JavaFX Fireside chat 4

4 Upvotes

Installing Gluon Scene Builder and then using Eclipse with OpenJDK11, JavaFX with Scene Builder to build a basic JavaFX desktop application.

https://youtu.be/c4V9nSuQb2w


r/javaexamples • • Apr 30 '20

Containerize a Spring Boot app with Docker

4 Upvotes

I wrote up a post I hope helps anyone who is wondering how to containerize their Spring Boot app with Docker.


r/javaexamples • • Apr 30 '20

String s = new String (“hello”);

4 Upvotes

How many objects are created here ?


r/javaexamples • • Jun 23 '19

Java Creational Design Patterns – Abstract Factory Pattern

4 Upvotes

r/javaexamples • • Apr 26 '19

Java 12's Switch Expression

4 Upvotes

Java 12 Switch Expression with Code Examples

Java 12 Switch Expression


r/javaexamples • • Feb 17 '19

Do you think you know about java operators then watch this

4 Upvotes

Hey guys,

We all study syntax of different programming language but most of the time we just go through some tutorial and we will just start coding.

Even for simple operators in java we may face difficult to answer some questions.

So, this is a collection of such questions where you can really check your knowledge about operators in java.

Hope you guys will like it.

https://youtu.be/YLFQdWid0Zc


r/javaexamples • • Sep 23 '18

Java Collections Framework | Need & Advantages

4 Upvotes

Collections Framework in Java is one of the most valuable and interesting topics of Java language. How much important it is? Without using the collection concept, you cannot develop any project. Every Java learner has to learn this topic. According to Sun Microsystem document, Among all the java concepts, Collections Framework is the most important concept for developing the project as well as to crack the interview also. because this topic is the most favorite topic for the interviewers.