r/javaexamples • • Sep 16 '24

Object Oriented Programming Example in Java

0 Upvotes

Here is a simple example in Java to understand the object oriented programming better:

https://javarevisited.blogspot.com/2010/10/fundamentals-of-object-oriented.html


r/javaexamples • • Jul 30 '19

Top 5 Frameworks for Java Developers

1 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.

In this article we will see Top 5 Frameworks for Java Developers.

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


r/javaexamples • • May 20 '22

Question for the Day: (Please post your answers in the comments below)

0 Upvotes

What does the following code output when run as java Duck Duck

Goose?

  1. public class Duck {

public void main(String[] args) {

for (int i = 1; i <= args.length; i++)

System.out.println(args[i]);

} }

a) Duck Goose

b) Duck ArrayIndexOutOfBoundsException

c) Goose

d) Goose ArrayIndexOutOfBoundsException

e) None of the above


r/javaexamples • • May 20 '22

How to create and use a jar file in Eclipse

0 Upvotes

A video on Creating and using a jar file in Command-Line is OUT NOW!!!!

You can check out the video here.


r/javaexamples • • Mar 03 '19

Want to know concepts related to null in java??

0 Upvotes

We all are familiar with null in java..but most of us don't know what exactly is null. To know the concepts related to null watch this

https://youtu.be/zsflcFD2sW8


r/javaexamples • • Jun 27 '19

Java Creational Design Patterns – Singleton Pattern

1 Upvotes

r/javaexamples • • Sep 06 '24

7 best practices Java developers can follow while dealing with passwords

0 Upvotes

I wrote an article about best practices Java developers can follow while dealing with passwords or sensitive information in Java application - https://javarevisited.blogspot.com/2012/05/best-practices-while-dealing-with.html


r/javaexamples • • Jul 28 '21

How to create JcomboBox in java

0 Upvotes

JComboBox of javax.swing inherits JComponent class.

The following are ways to create JComboBox in java.

  1. JComboBox jcbox=new JComboBox();

  2. JComboBox jcbox=new JComboBox(Object[] items);

  3. JComboBox jcbox=new JComboBox(Vector<?> items)


r/javaexamples • • Apr 25 '19

Java concurrent API - CountDownLatch

0 Upvotes

Understanding CountDownLatch with examples.

CountDownLatch


r/javaexamples • • May 11 '22

Java Examples

0 Upvotes

If you are looking for examples of various concepts of Java. check out the below youtube channel: Youtube/ Deep Diving in Java with Kosha.


r/javaexamples • • Sep 30 '23

Integer ABS - Programming Puzzle of the week

0 Upvotes

The calculation of absolute value is a basic arithmetic operation. In the latest episode of Java Puzzle of the Week 🧩, we are checking if it can be calculated correctly for every value of the Integer type.

https://www.youtube.com/watch?v=ET8jSVskBWM&list=PL8NC5lCgGs6MTxHSPdqpAjtXhs66cZgRL


r/javaexamples • • May 28 '20

Top Java Development Companies & Java Developers 2019

0 Upvotes

Software Applications being an amicable part of the business are being deployed at every end of business irrespective of its size and aid in capturing a larger customer base as well as helps in enforcing the accurate seamless within the company operations.

They are also top-notch, reliable and sophisticated solutions and services thus, since you are reading it, it is safe to say you are looking forward to the software development company.

Websites are the pool of endless opportunities and they deliver an interactive way to connect with clientele.

When we think of robust java developed websites, automatically we are channelized to think about the various dimensions that are important to nurture in our minds  – like the market for website development, various technologies, development cost, expert software development company, etc.


r/javaexamples • • Oct 11 '19

Java Behavioral Design Patterns – Interpreter Design Pattern

0 Upvotes

The Interpreter design pattern is one of the behavioral design patterns that give specification about how to evaluate sentences in a language.

Below article helps you understand the interpreter pattern with a simple example.

You can download the Source Code from their GitHub repository.

https://www.opencodez.com/java/interpreter-design-pattern.htm


r/javaexamples • • Mar 13 '19

Static Nested Class in Java | Uses & Example Programs

0 Upvotes

When an inner class is defined with static modifier inside the body of another class, it is known as a static nested class in Java. https://www.scientecheasy.com/2019/03/static-nested-class-in-java.html


r/javaexamples • • Jun 07 '22

How to Print Pyramid Pattern in Java? Program Example

0 Upvotes

r/javaexamples • • May 25 '19

Java Collection - Deque

1 Upvotes

Java collection - Deque with code examples Java Deque


r/javaexamples • • May 23 '18

Java Program to Compute Average Mark of Students

0 Upvotes

r/javaexamples • • Jan 29 '19

Super Keyword in Java | Example & Programs

1 Upvotes

r/javaexamples • • Jul 25 '17

[Java] Let's Code: Multithreaded Application Logger (11:56)

1 Upvotes

https://www.youtube.com/watch?v=rZ7T7zX4ZM4

This project is a java tutorial on how to make a logging mechanism for a multi-threaded application which may have more than one method of storing logging information.

The mechanism is implemented as a singleton which is a logging interface. This interface is agnostic and doesn't care about what method is actually being used to store the logging data. The program could be writing to a file, displaying in some GUI text area, writing to a database, or streaming over a network socket.

With this interface, the user doesn't need to continually change their code in order to implement a new logging method.

This is accomplished using Java's Observer/Observable mechanism so that one (or more) log message producers, can send log messages to one (or more) log message consumers. The method supports multiple log levels (debug, error, etc.).

P.S. Sorry about 480p! Next video will have better video quality

github: https://github.com/chrimatacode/app-log


r/javaexamples • • Dec 19 '20

UST Global Java Virtual Interview | Part2 | Sync Tech

1 Upvotes

Java virtual interview


r/javaexamples • • May 13 '22

How to create and use a jar file in Eclipse

1 Upvotes

A video on Creating and using a jar file in Eclipse is OUT NOW!!!! You can checkout the video here.


r/javaexamples • • May 13 '22

How to Convert a Stream to List, Set, and Map in Java? Example Tutorial

1 Upvotes

r/javaexamples • • Jul 17 '19

A Simple Websocket Application in SpringBoot

1 Upvotes

Websocket is used to develop two way communication between server and browser. For example, in a chat application, if a user sends a message to a different user, the the application sends that message to the server first and the server informs the application of the second user . If we don’t use websocket, the application or the client will have to pull the server data continuously for any new updates.

In Sprint Boot, we can easily create a websocket application. In this tutorial, I will show you how to create a websocket server in Spring boot. We will learn how to connect and disconnect from a socket server and how to send a simple text message. The client will subscribe to the server, it will accept a string and push a separate string to the subscriber client.

https://www.opencodez.com/java/simple-websocket-application-springboot.htm


r/javaexamples • • Sep 07 '23

A simple Java integer comparison - Programming Puzzle of the Week

1 Upvotes

Hello, I've started contributing to a new YouTube series called "Java Puzzle of the Week." 🧩
In this series, I'll delve into short Java code snippets with varying levels of difficulty. 🤓
The first episode tackles integer comparisons. New episodes will appear at every Thursday.

If you're interested, I'd love for you to check it out!

https://www.youtube.com/watch?v=TmuoAo7CkM4