Java

1384 readers
1 users here now

For discussing Java, the JVM, languages that run on the JVM, and other related technologies.

founded 1 year ago
MODERATORS
1
2
 
 

cross-posted from: https://lemmy.ml/post/22574276

If there was one reason I liked coding in Java, it'd be AssertJ and its brilliant extensibility.

The image is an example of it from bjForth

The ability to create custom assertions makes the test code concise and read naturally.

3
6
submitted 6 days ago by testAccount to c/java
 
 

Even though I don't use Azure, I found this quite interesting.

4
5
Java on Kubernetes (www.youtube.com)
submitted 6 days ago by testAccount to c/java
 
 

Not a lot of information out there about running Java on k8s

I have also been looking into benchmarks between HTTP servers.

There is this but its just "Hello world"

5
1
YYYY? yyyy! (pvs-studio.com)
submitted 6 days ago by CodiUnicorn to c/java
6
7
8
9
10
 
 

Hey Guys,

For my current spring boot project I have been using a @Scheduled annotation and using cron syntax for running jobs, but now I don't want to schedule jobs on holiday (based on US calendar).

So is there any approach to skip the schedule on holiday.

Thanks for your help in advanced.

11
12
 
 

cross-posted from: https://programming.dev/post/19544005

When managing a database, speed and efficiency are crucial. As applications handle more data and become more complex, the performance of database queries plays a big role in keeping everything running smoothly. One of the best ways to make queries faster is by using indexes. Similar to a book’s index that helps you quickly find a topic, database indexes allow you to find specific data without searching through the entire database. This article explains the basics of indexing, how it improves query performance, and some simple tips for using indexes effectively. Whether your database is small or large, understanding how to use indexes can help keep your application fast and responsive.

13
17
submitted 2 months ago by lysdexic to c/java
14
17
The Arrival of Java 23 (blogs.oracle.com)
submitted 2 months ago by lysdexic to c/java
15
16
 
 

Hey guys, I'm pretty new to coding and I recently learnt java and now I have to learn spring boot but there are a lot of sources when searched and it's getting quite complicated.

So is there any documentation which can help me learn spring boot.

Also thank you for all the help.

17
 
 

Like you can see in the linked youtube video (forward to 7:14), he is using an older version of Launch4j and using "Only use private JDK runtimes" in the JRE tab to make sure the .exe file uses the JRE we bundled along with other necessary files. But the latest version I am using (3.5.0) does not have that option.

What is the alternative option for the newer versions of Launch4j?

18
19
 
 

cross-posted from: https://programming.dev/post/17309619

In this article, we will explore the key differences between Ktor and Spring Boot for Kotlin developers based on the experience of various developers.

20
21
22
23
24
25
 
 

cross-posted from: https://programming.dev/post/15638499

A list of major Java and JVM features since JDK 17 to 22,

New language features JEP-409: Sealed Classes (17) JEP-440: Record patterns (21) JEP-441: Pattern matching for switch (21) JEP 456: Unnamed Variables & Patterns (22)

API changes JEP-306: Restore Always-Strict Floating-Point Semantics(17) JEP-382: New macOS Rendering Pipeline(17) JEP-400: UTF-8 by Default (18) JDK-8301226 – Clamp method for java.lang.(Strict)Math (21) JEP-439: Generational ZGC JEP-444: Virtual threads (21) JEP-454: Foreign Function & Memory(FFM) API (22)

Security JEP-452: Key Encapsulation Mechanism API (21) JDK-8275252: keystore file Features JEP-408: Simple web server (18) JEP-423: Region pinning for G1 (22) JEP-458: multi-file source-code programs (22) JEP-423: Region pinning for G1 (22) JEP-458: multi-file source-code programs (22)

Documentation JEP-413: Javadoc code snippets (18)

Deprecations

Lookahead Scoped values + Structured concurrency Module import declarations

view more: next ›