LeetCode #347. Top K Frequent Element
Complexity Analysis - Time Complexity: On log n dominated by sorting - Space Complexity: On for the HashMap and List Solution java class Solution { public int...
Complexity Analysis - Time Complexity: On log n dominated by sorting - Space Complexity: On for the HashMap and List Solution java class Solution { public int...
What is a Servlet? In Java web development, a Servlet is a Java class that: - Receives an HTTP request - Returns an HTTP response Typical flow: Browser → Servl...
Spring Boot 4.0 migration looks straightforward on paper: update dependencies. In reality, things break—quietly, repeatedly, and sometimes in places you don’t e...
Data types Data types are the kinds of information stored in a variable e.g., numbers, characters, true/false, etc.. There are two categories of data types: -...
Class - Class is a Java keyword - Class is a template - Class is a logical entity - First letter of the class name should be capital CamelCase, e.g., SalaryAcc...
What is an Instance Variable in Java? - An instance variable is a variable that belongs to an object instance of a class. - Every object gets its own copy of t...
TL;DR Write tests. You don't truly realize how messy code is until you try to write a unit test for it. Understand your annotations. Don’t use @Data when @Gett...
Intro For my Intro to Programming module, I made a TicketDesk system in Java that can: - Track tickets - Track login information - Provide a role‑based authent...
Evolution of Database Access in Java ! https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-...
What I’m Starting With - Kunal Kushwaha’s Java DSA Assignments - Solve 1 LeetCode question daily What You Can Expect From This Series Every post will contain:...
What is multithreading in Java? Multithreading in Java is a feature that allows for the concurrent execution of two or more parts of a program, known as thread...
Interface or Abstract Class? They are very similar, and therefore it can be confusing to know when to use each one. I’m going to answer this question in this a...