---
title: "kartik sharma (@kartiksharma3) | Hashnode"
description: "I am a leader with devloping skills. Read the latest articles by kartik sharma on Hashnode."
url: "https://hashnode.com/@kartiksharma3"
---

@kartiksharma3

# kartik sharma

@kartiksharma3 · Joined June 2024

I am a leader with devloping skills

### [Mastering Custom Sorting in Java: Comparator Made Simple](https://setter.hashnode.dev/mastering-custom-sorting-in-java-comparator-made-simple?utm_source=hashnode&utm_medium=feed)

If you’ve ever needed to sort a list of objects in Java say, a list of students by marks, names, or roll numbers you’ve likely bumped into Comparator. It’s one of the most powerful (and often underrated) tools in the Java Collections framework. Wha...

2 min read · [setter.hashnode.dev](https://setter.hashnode.dev/mastering-custom-sorting-in-java-comparator-made-simple?utm_source=hashnode&utm_medium=feed)

[May 17, 2025](https://hashnode.com/posts/mastering-custom-sorting-in-java-comparator-made-simple/682860c8b2256f3c5b1c2066)

### [Mastering the Sieve of Eratosthenes: Finding Closest Primes Efficiently](https://setter.hashnode.dev/mastering-the-sieve-of-eratosthenes-finding-closest-primes-efficiently?utm_source=hashnode&utm_medium=feed)

Introduction While doing LeetCode's daily challenge today, I faced a problem that needed me to find the nearest pair of primes within a specific range efficiently. While doing so, I got to know about the Sieve of Eratosthenes, which is a fast algor...

2 min read · [setter.hashnode.dev](https://setter.hashnode.dev/mastering-the-sieve-of-eratosthenes-finding-closest-primes-efficiently?utm_source=hashnode&utm_medium=feed)

[Mar 7, 2025](https://hashnode.com/posts/mastering-the-sieve-of-eratosthenes-finding-closest-primes-efficiently/67cb28ef3e185211893086ef)

### [An Introduction to Java Multithreading Concepts](https://setter.hashnode.dev/an-introduction-to-java-multithreading-concepts?utm_source=hashnode&utm_medium=feed)

What is Multithreading? Multithreading is a technique in which multiple tasks run simultaneously within the same program. It allows efficient utilization of CPU by executing multiple threads independently. Example Think of a web browser , You can ope...

2 min read · [setter.hashnode.dev](https://setter.hashnode.dev/an-introduction-to-java-multithreading-concepts?utm_source=hashnode&utm_medium=feed)

[Mar 1, 2025](https://hashnode.com/posts/an-introduction-to-java-multithreading-concepts/67c33ff86c525cec2b82d654)

### [Logging in Java](https://setter.hashnode.dev/logging-in-java?utm_source=hashnode&utm_medium=feed)

Logging is an essential part of software development that helps track important events, debug errors, and analyze application behavior. Instead of relying on System.out.println(), which is not efficient for large-scale applications, developers use lo...

1 min read · [setter.hashnode.dev](https://setter.hashnode.dev/logging-in-java?utm_source=hashnode&utm_medium=feed)

[Feb 21, 2025](https://hashnode.com/posts/logging-in-java/67b871253a00cfd5e295f305)

### [Demonstration of passing object reference by value as parameter in java methods .](https://setter.hashnode.dev/demonstration-of-passing-object-reference-by-value-as-parameter-in-java-methods?utm_source=hashnode&utm_medium=feed)

ATTEMPTING TO REASSIGN OBJECT . If you reassign an object reference inside java method it do not affect the original state of object outside that method .Below is an demonstration ,that shows java passes object reference by value . public class n { ...

2 min read · [setter.hashnode.dev](https://setter.hashnode.dev/demonstration-of-passing-object-reference-by-value-as-parameter-in-java-methods?utm_source=hashnode&utm_medium=feed)

[Jul 4, 2024](https://hashnode.com/posts/demonstration-of-passing-object-reference-by-value-as-parameter-in-java-methods/66865359525eb8ee8fb083ab)
