Posts with #JavaTips

#JavaTips

Public posts on X that use #JavaTips.

Related hashtags

  1. Vrushali@Vrushali0988
    Java Streams confused? Stream - pipeline for processing data: → filter() → keep what you need → map() → transform values → reduce() → combine into one result Many values → process → result #Java #JavaStreams #JavaTips
    10370
  2. Java Code Geeks@javacodegeeks
    🛠️ Debugging memory leaks is hard… unless you know exactly what to look for. #JavaTips
    0051.3K
  3. Java Code Geeks@javacodegeeks
    💡 Wondering when to use a record instead of a class? We’ve got the real-world answers! #JavaTips
    1131.2K
  4. Mario Casari✓@mario_casari
    💡Java tip: Since Java 15 you can write multiline strings more easily with 'Text Blocks'. ✅ Writing JSON content with a text block: String json = """ { "name": "John", "age": 30 } """; ✅ No escape characters ✅ No '+' signs ✅ Easy indentation #JavaTips
    29913.6K
  5. Ayush@viperdizzert
    Stop writing loops for every collection. Use Java Streams. 🧵 ​Your future self (and your code reviewers) will thank you. ​#JavaTips #java
    Download
    00778
  6. Virendra Codes@VirendraCodes
    @VirendraCodes
    2️⃣ How does it work? Objects in Java become eligible for GC when they have no active references. The GC sweeps them away, freeing up memory! 🔥 💡 Ways to make an object eligible for GC: ✅ Assign null → obj = null; ✅ Reassign reference → obj1 = obj2; #JavaTips
    10210
  7. Ayush Shrivastava 🇮🇳@ayshriv
    Custom login page in Spring Security? Just override the formLogin() in your security http.formLogin().loginPage("/custom-login"); And don’t forget to permit it: http.authorizeRequests().antMatchers("/custom-login").permitAll(); #JavaTips #springboot #ayshriv
    Download
    011853.4K
  8. Mastering Backend@master_backend
    Classic switch in Java allows fall-through when break is missing. Enhanced switch (Java 14+) fixes this with concise, safer syntax using arrows and direct value returns. Modern switch makes Java code cleaner and easier to maintain. #Java #Programming #JavaTips #CleanCode
    Download
    115347
  9. Mario Casari✓@mario_casari
    💡 Java tip: Avoid boxing overhead by using primitive streams. ❌ Creating Integer objects for each value: Stream<Integer> boxed = Stream.of(1, 2, 3, 4, 5); int sumBoxed = boxed.reduce(0, Integer::sum); #Java #JavaTips 🧵
    306497
  10. Kolusu Trinadh Kumar@KolusuTrinadh
    From Java 11 , Arrays.sort() uses TimSort internally. You don't need to write the TimSort algorithm yourself. This is a significant convenience. #JavaTips
    10225
  11. Mario Casari✓@mario_casari
    💡Java: If you have to read small files, you can use Files.readAllLines(), it's more direct and simple. #JavaTips
    Download
    0035946
  12. Java Code Geeks@javacodegeeks
    📦 Simple Maven/Gradle dependency, no setup pain. Start with OSHI today. #JavaTips
    0062.4K
  13. Java Code Geeks@javacodegeeks
    📦 Quarkus + DevServices + Debugging = 🔥 productivity. Learn how to wire it all together with a working example. #JavaTips #QuarkusDev
    0061.3K
  14. Show more posts