Communities:
Java
| # | Tweet | Community | Topic | Views ▼ | Ratio | Engagement | Posted |
|---|---|---|---|---|---|---|---|
| 1 | [image] Embedded Servers in Spring Boot ✅
In older Java web apps, we usually build a WAR file and deploy it to an external server, such as a standalone Tomcat or JBoss.
With Spring Boot, the server is embedded inside the application. The server libraries are bundled in the classpath | Java | — | 15.6K | 3.6x | 66 | Apr 12 |
| 2 | [image] Interview Question: Explain the internal working of HashMap? How does it handle collisions? | Java | — | 11.4K | 2.6x | 103 | Feb 21 |
| 3 | [image] Important Java Library #1: Apache Commons Lang 👉
✅This library provides small helper utilities like StringUtils, ObjectUtils, and EqualsBuilder, which can save time and produce clean code. | Java | — | 10.2K | 2.3x | 45 | May 19 |
| 4 | [image] What causes a java.lang.OutOfMemoryError in Java? | Java | — | 9.7K | 2.2x | 68 | Mar 6 |
| 5 | [image] Java Interviewer: How do you create and start threads in Java?
Answer: ✅There are three common approaches:
- Extending Thread
- Implementing Runnable
- Using executors (including virtual thread executors) | Java | — | 7.5K | 1.7x | 40 | Jun 20 |
| 6 | [image] Understanding JVM Memory Areas ✅ | Java | — | 6.7K | 1.5x | 47 | Jun 23 |
| 7 | [image] Spring Security Concepts: OAuth2 Resource Server ✅
With a single OAuth2ResourceServer declaration, Spring Security will:
1. Extract the Authorization: Bearer <token> header from every request
2. Validate the token’s signature against your Authorization Server’s public key | Java | — | 6.2K | 1.4x | 58 | May 10 |
| 8 | [image] ➡️Pagination is the technique which divides large datasets into smaller, manageable chunks.
These chunks are called pages. Instead of fetching and displaying all data at once, we retrieve and show only the data a user needs right now.
✅ What are the benefits of pagination? | Java | — | 5.7K | 1.3x | 31 | Jun 24 |
| 9 | [image] ✅Garbage Collector in Java: Java gives us multiple GC options. Picking the right one depends on your latency and throughput requirements. | Java | — | 5.6K | 1.3x | 36 | Jun 26 |
| 10 | [image] Interview Questions on Java Concurrency ✅
➡️ What is the real difference between volatile, synchronized, and atomic classes?
➡️ When would one be enough and when would you need the others?
➡️ How do visibility, atomicity, and ordering matter in multithreaded code? | Java | — | 4.8K | 1.1x | 31 | Jul 5 |
| 11 | [image] Factory vs Abstract Factory Design Pattern ✅️ | Java | — | 2.4K | 0.5x | 63 | Mar 17 |
| 12 | [text] If I had to learn Spring Boot from zero today, this is the order I'd follow:
1. Core Java first. Collections, streams, exceptions.
2. Basics of HTTP. Methods, status codes, headers.
3. One simple REST API. Just CRUD.
4. A real database. PostgreSQL, not only H2.
5. Spring Data | Java | — | 1.8K | 0.4x | 46 | Sep 27 |
| 13 | [image] JPA (now called Jakarta Persistence) is a specification.
It defines a set of standard APIs and annotations for object‑relational mapping in Java.
Hibernate ORM is a popular implementation of that specification. It takes the JPA rules and provides a working library that you add | Java | — | 843 | 0.2x | 10 | Sep 15 |
| 14 | [text] Java tip:
isEmpty() checks if a string has length 0.
isBlank() also treats spaces-only strings as empty.
Use isBlank() for user input. | Java | — | 827 | 0.2x | 13 | Sep 25 |
| 15 | [text] Java Records replace 30 lines of boilerplate with one:
record User(String name, int age) {}
Constructor, getters, equals, hashCode, toString.
All done. | Java | — | 718 | 0.2x | 17 | Sep 23 |
| 16 | [text] Java 25 lets you write a full program like this:
void main() {
IO.println("Hello");
}
No class. No public static. No String[] args.
Really nice for beginners and small scripts. For real projects you'll still write classes, and that's fine. | Java | — | 416 | 0.1x | 3 | Sep 24 |