Author Archives: Stanislav_Panteleev

Java.Core.What is the role of the Class class in Java?

Role of the Class Class in Java In Java, the Class class is a part of the Reflection API and represents metadata about a class at runtime. It is located in the java.lang package and provides methods to: Obtain information … Continue reading →

Posted in Без рубрики | Comments Off on Java.Core.What is the role of the Class class in Java?

Java.Core.What is the enum type in Java? Provide examples of its use.

In Java, an enum (short for “enumeration”) is a special data type used to define a collection of constants. Each constant in an enum is implicitly public, static, and final. Enums are commonly used when a variable can take only … Continue reading →

Posted in Без рубрики | Comments Off on Java.Core.What is the enum type in Java? Provide examples of its use.

Java.Core.What is reflection in Java, and how is it used?

🔍 What is Reflection in Java? Reflection is the ability of a Java program to inspect, analyze, and even modify itself at runtime — meaning you can inspect classes, methods, fields, and constructors even if you don’t know them at … Continue reading →

Posted in Без рубрики | Comments Off on Java.Core.What is reflection in Java, and how is it used?

Java.Core.Explain the difference between Serializable and Externalizable.

Awesome question! Let’s break down the difference between Serializable and Externalizable, because they both deal with serialization — but they work very differently.

Posted in Без рубрики | Comments Off on Java.Core.Explain the difference between Serializable and Externalizable.

Java.Core.SerializationFormats

By default, Java’s built-in serialization (Serializable) works with binary streams — meaning the object is serialized into a byte stream (essentially a compact, unreadable format for humans). However, you can absolutely serialize objects into other formats like text (JSON, XML, … Continue reading →

Posted in Без рубрики | Comments Off on Java.Core.SerializationFormats

Java.Core.Serialization

How does Serialization work? Step 1: Implement Serializable For a class to support serialization, it must implement the java.io.Serializable interface.

Posted in Без рубрики | Comments Off on Java.Core.Serialization

Java.Core.Explain the purpose of the transient keyword in Java

The transient keyword in Java is used to indicate that a field should not be serialized when an object is converted into a byte stream (for example, when saving to a file, sending over a network, or caching).

Posted in Без рубрики | Comments Off on Java.Core.Explain the purpose of the transient keyword in Java

Java.Core.Generics.TypeErasure

🔹 What is Type Erasure? Type erasure is a process performed by the Java compiler when working with generics. In short: The compiler removes (erases) all generic type information during compilation, replacing it with raw types or bounds (like Object … Continue reading →

Posted in Без рубрики | Comments Off on Java.Core.Generics.TypeErasure

Java.Core.WildcartReadWriteLimitations

This is one of the most confusing (but important) parts of generics and wildcards in Java. Let me explain this step by step — and once you understand the logic, it will make perfect sense. 🔥

Posted in Без рубрики | Comments Off on Java.Core.WildcartReadWriteLimitations

Java.Core.GenericWildcard

🏆 What Are Wildcards (?) in Java? Wildcards allow you to use unknown types in generics. They are useful when working with collections of different but related types. Types of Wildcards in Java Wildcard Meaning Example ? (Unbounded) Accepts any … Continue reading →

Posted in Без рубрики | Comments Off on Java.Core.GenericWildcard