Skip to content

mkyong.com

  • Spring Boot
  • Java Virtual Threads
  • Contact
  1. Home /
  2. java25

Tag: java25

java scoped values
java August 18, 2026 19 min read by mkyong 0 comments

Java Scoped Values Example

Learn Java scoped values (JEP 506) with simple, runnable examples. See the problem they solve, how other languages do it, and how to share data with callees and child threads without method parameters. Tested with Java 25.

Read more Java Scoped Values Example
Java AtomicInteger
java August 16, 2026 13 min read by mkyong 0 comments

Java AtomicInteger Example

Learn Java AtomicInteger with simple examples, tested on Java 25. See why a normal int breaks with threads, and how incrementAndGet, compareAndSet and updateAndGet fix it.

Read more Java AtomicInteger Example

Recent Posts

  • Java Compact Source File: No Class, No Static Main
  • Java Scoped Values Example
  • Spring Boot RAG Example with Spring AI
  • Java AtomicInteger Example
  • Java Virtual Threads Example
  • Spring Boot Supabase CRUD Example
  • Spring Boot REST Docs Example
  • How to Install Java on Windows (Step-by-Step Guide)

© 2008–2026 mkyong.com

  • About
  • Editorial Policy
  • Contact
  • Code License
  • Privacy Policy
  • Terms of Use