Open in app

Sign In

Write

Sign In

DN Tech
DN Tech

1.3K Followers

Home

About

Published in Geek Culture

·Pinned

Java Coding Tip — Functional Programming

Scenario Imagine we have a List of Strings. We will do a very simple task — print out each element in that string. The intuitive code that comes to mind might be this : final List<String> strings = Arrays.asList("str1", "str2", "str3", "str4", "str5"); int i; for (i=0; i < strings.size(); i++){…

Java

4 min read

Java Coding Tip — Functional Programming
Java Coding Tip — Functional Programming
Java

4 min read


Published in Dev Genius

·Pinned

How Can You Solve This Java Multithreading Interview Problem?

Scenario — Let’s say we have two threads. In Thread1, we will increment an integer field “count” by 1. In Thread2, if we see the count is larger than 1, we will print the line “t2 running”. If we loop this run() method 100 times, and each time we are printing…

Java

3 min read

How Can You Solve This Java Multithreading Interview Problem?
How Can You Solve This Java Multithreading Interview Problem?
Java

3 min read


Published in Geek Culture

·Pinned

Interview Question: How does Thread Pool Work in Java?

Before we dive into the question, let’s take a look at some key fields of the class ThreadPoolExecutor class: corePoolSize: the minimum number of workers to keep alive. maximumPoolSize: the capacity of the pool. keepAliveTime: timeout in nanoseconds for idle threads waiting for work. workQueue: the queue used for holding…

Java

2 min read

Interview Question: How does Thread Pool Work in Java?
Interview Question: How does Thread Pool Work in Java?
Java

2 min read


Published in Geek Culture

·Pinned

Master Debugging in IntelliJ

There’s one comment I read the other day I found hilarious and so true at the same time: “Developer’s daily job is to write bugs and debug them.” Especially as backend developers, the bugs we encounter are often not as straightforward as frontend developers. We usually need to trace the…

Java

4 min read

Master Debugging in IntelliJ
Master Debugging in IntelliJ
Java

4 min read


Pinned

Java Backend Developer Interview Questions(Pt. 11–20)

11. What are the differences between thread and process? Thread is a small unit within a process. A process can have multiple threads. A process is an executing program but a thread is a part of the program. Each process has its own address space which multiple threads within that process…

Interview

3 min read

Java Backend Developer Interview Questions(Pt. 11–20)
Java Backend Developer Interview Questions(Pt. 11–20)
Interview

3 min read


Published in Geek Culture

·5 days ago

An IDEA Plugin that Can Boost Your Java Unit Testing Efficiency

Recently, my project at work almost got delayed because the test coverage rate wasn’t up to the standard. I believe unit test coverage is one of the hard requirements for many developers before we can actually push the code to production. A few days ago, I got to know about…

Intellij

3 min read

An IDEA Plugin that Can Boost Your Java Unit Testing Efficiency
An IDEA Plugin that Can Boost Your Java Unit Testing Efficiency
Intellij

3 min read


Published in Geek Culture

·Jan 10

Design Patterns That Help Me Eliminate Repetitive Code

Imagine we are developing a feature to place an order based on different users: Normal user needs to pay the shipping fee, the shipping fee takes up 10% of the products and there’s no discount provided VIP user also needs to pay a 10% shipping fee but a discount will…

Design Patterns

5 min read

Design Patterns That Help Me Eliminate Repetitive Code
Design Patterns That Help Me Eliminate Repetitive Code
Design Patterns

5 min read


Published in Geek Culture

·Jan 3

WHAT THE TECH is Cookie, Session and Token?

In my job recently, we had to develop a new feature for a website app that requires a user login. After I completed my backend logic and was testing the website with username and password from front end, I encountered some authentication stuff such as Cookie, Session, and Token. I…

Programming

6 min read

WHAT THE TECH is Cookie, Session and Token?
WHAT THE TECH is Cookie, Session and Token?
Programming

6 min read


Published in Geek Culture

·Dec 20, 2022

The Mistake Often Forgotten in Java Serializable

Serialization in Java allows us to convert an Object to stream that we can send over the network or save it as file or store in DB for later usage. Especially in the microservices architecture, serialization and deserialization become more critical as we often need to send objects from one…

Java

4 min read

The Mistake Often Forgotten in Java Serializable
The Mistake Often Forgotten in Java Serializable
Java

4 min read


Published in Geek Culture

·Dec 15, 2022

How Spring Event Driving Helps in My Work

In some development scenarios, we need to push a business process from one state to another upon some events triggered. In my work, the Spring event-driven structure helped to tackle this situation. Let’s take a look at the example below. In this example, our users will apply for a document. …

Java

4 min read

How Spring Event Driving Helps in My Work
How Spring Event Driving Helps in My Work
Java

4 min read

DN Tech

DN Tech

1.3K Followers

Backend Software Engineer who shares about my daily work bits

Following
  • Tim Denning

    Tim Denning

  • Ben Le Fort

    Ben Le Fort

  • Liu Zuo Lin

    Liu Zuo Lin

  • Ella Heart

    Ella Heart

  • Chakresh Tiwari

    Chakresh Tiwari

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech