shlogg · Early preview
Arshi Saxena @arshisaxena26

Full Stack Developer | Java, Spring Boot, Angular Expert

Java Data Type Pitfalls: Mastering Long Variables And Implicit Casting

Mastering data types in Java: use single quotes for char, append 'f' to float, L suffix for long outside int range & beware of implicit type-casting pitfalls.

Java's + Operator: Arithmetic Vs String Concatenation

The + operator in Java performs arithmetic operations with numbers and string concatenation, but can lead to compilation errors or unexpected results when used incorrectly.

Understanding JVM Memory Areas: Stack, Heap, And MetaSpace

JVM's memory areas: Stack (method calls & local vars), Heap (objects & instance vars), MetaSpace (class metadata & static vars). Understanding these concepts is key to Java developer interviews and essential for efficient memory management.

Understanding Java's Garbage Collection: A Simplified Approach

Garbage Collection (GC) in Java automates memory management, freeing devs from manual memory handling. GC runs in background, cleaning up unreferenced objects & preventing OutOfMemoryErrors.

Shift Non-Zero Values Right In An Array With Java

Shift non-zero values in an array to the right while preserving order using Java's index-tracking approach for efficient time complexity of O(n) and space complexity of O(1).

Method Overloading Concepts And Rules Explained

Method overloading allows same method name with different parameters, improving code readability and reusability. Java's println() is a real-world example of method overloading for various data types.

Abstract Classes In Java: Simplifying Complex Systems With Abstraction

Abstract Classes in Java: Simplifying Complex Systems with Abstraction. Learn how to use abstract classes as blueprints for other classes, hiding unnecessary complexity and enforcing structure.

Static Variables In Java: A Comprehensive Guide

Learn about static variables in Java: shared across all instances, initialized once, stored in Method Area. Key use cases include global counters, configuration settings & caching.

The Versatility Of The "this" Keyword In Java With Examples.

The `this` keyword in Java enhances code readability and control over constructors, instance variables, and method calls. It's used to reference the current object or class instance.