Flashcards
StringBuffer characteristics
Hover (or tap) to flip
A mutable character sequence designed for thread-safe operations.
Learn moreStringBuffer thread safety
Hover (or tap) to flip
Ensures safe string modifications in multi-threaded environments through synchronized methods.
Learn moreStringBuilder performance advantage
Hover (or tap) to flip
Provides fast string modifications without synchronization overhead.
Learn moreStatic variable behavior
Hover (or tap) to flip
Static variables belong to the class and are shared across all instances.
Learn moreLocal variable scope
Hover (or tap) to flip
Local variables exist only within the block or method where they are declared.
Learn moreRuntime polymorphism mechanism
Hover (or tap) to flip
Achieved through method overriding and dynamic method dispatch.
Learn moreCompile-time polymorphism concept
Hover (or tap) to flip
Achieved through method overloading and resolved during compilation.
Learn moreMethod signature components
Hover (or tap) to flip
A method signature includes its name and parameter list, not its return type.
Learn moreMethod overloading definition
Hover (or tap) to flip
Multiple methods share the same name but differ in parameter type, number, or order.
Learn moreFully qualified class name
Hover (or tap) to flip
A complete class path including its package, used when no import statement exists.
Learn moreWhat are Java packages used for?
Hover (or tap) to flip
Packages group related classes and prevent naming conflicts in large applications.
Learn morePattern matching with instanceof
Hover (or tap) to flip
Modern Java allows binding a variable directly during type checking.
Learn moreinstanceof operator
Hover (or tap) to flip
Performs a runtime type check to verify whether an object belongs to a specific type.
Learn moreConstructor chaining principle
Hover (or tap) to flip
this() allows reuse of initialization logic within the same class.
Learn morethis keyword
Hover (or tap) to flip
Refers to the current object instance and resolves naming conflicts between fields and parameters.
Learn moreExplicit parent constructor call
Hover (or tap) to flip
Using super() ensures proper initialization of inherited state.
Learn moresuper keyword
Hover (or tap) to flip
Provides access to members or constructors of the immediate parent class.
Learn moreGarbage collection best practice
Hover (or tap) to flip
Reduce excessive object creation and prefer efficient data structures to minimize GC pauses.
Learn moreGarbage Collector
Hover (or tap) to flip
The JVM component that automatically reclaims heap memory by removing unreachable objects and preventing memory leaks.
Learn moreOpen Closed Principle
Hover (or tap) to flip