Tag

object

1 views collected around this technical thread.

Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Dec 20, 2024 · Frontend Development

Understanding JavaScript Prototypes and the Prototype Chain: A Comprehensive Guide

This article explains JavaScript objects, various ways to create them, the role of prototypes and the hidden __proto__ property, and how the prototype chain enables inheritance, illustrated with clear code examples and diagrams for front‑end developers.

Front-endInheritanceJavaScript
0 likes · 12 min read
Understanding JavaScript Prototypes and the Prototype Chain: A Comprehensive Guide
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 5, 2023 · Frontend Development

Comprehensive Guide to JavaScript Object Methods and Their Usage

This article provides an in‑depth overview of JavaScript's Object methods—including defineProperty, defineProperties, assign, create, freeze, seal, preventExtensions, fromEntries, hasOwnProperty, hasOwn, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, setPrototypeOf, isPrototypeOf, getOwnPropertyDescriptor, getOwnPropertyDescriptors, propertyIsEnumerable, keys, values, entries, is, and groupBy—explaining their purpose, parameters, behavior, and offering practical code examples for each.

JavaScriptMethodsProgramming
0 likes · 24 min read
Comprehensive Guide to JavaScript Object Methods and Their Usage
php中文网 Courses
php中文网 Courses
Jul 25, 2023 · Backend Development

Understanding PHP count() Function: Syntax, Parameters, Usage, and Common Issues

This article explains the PHP count() function, covering its syntax, required and optional parameters, return values, practical examples for arrays, objects, and multidimensional structures, as well as common pitfalls and best practices for accurate length calculations.

ArrayBackendProgramming
0 likes · 5 min read
Understanding PHP count() Function: Syntax, Parameters, Usage, and Common Issues
Selected Java Interview Questions
Selected Java Interview Questions
Sep 29, 2021 · Fundamentals

Why and How to Override hashCode() and equals() in Java

This article explains why Java developers must override both hashCode() and equals() methods for proper object comparison in hash-based collections, outlines the scenarios requiring such overrides, and provides detailed example code demonstrating correct implementations.

CollectionsHashCodeHashSet
0 likes · 7 min read
Why and How to Override hashCode() and equals() in Java
php中文网 Courses
php中文网 Courses
Apr 22, 2021 · Backend Development

Using PHP count() and sizeof() Functions to Count Array Elements and Object Properties

The article explains PHP's count() function (alias sizeof()), its syntax, parameters—including the optional COUNT_RECURSIVE mode—and demonstrates how to count array elements and object properties with practical code examples, highlighting return values and behavior with null or non‑countable inputs.

ArrayBackendcount()
0 likes · 3 min read
Using PHP count() and sizeof() Functions to Count Array Elements and Object Properties
Laravel Tech Community
Laravel Tech Community
Dec 13, 2020 · Backend Development

PHP count() Function – Counting Elements in Arrays and Objects

The PHP count() function returns the number of elements in an array or the number of properties in an object, with an optional recursive mode for multidimensional arrays, and includes details on its signature, parameters, return values, and practical code examples.

Arraycount()function
0 likes · 3 min read
PHP count() Function – Counting Elements in Arrays and Objects
Selected Java Interview Questions
Selected Java Interview Questions
Oct 27, 2019 · Fundamentals

Understanding the Relationship Between hashCode() and equals() in Java

This article explains how Java's hashCode() and equals() methods interact, illustrates their behavior with and without hash‑based collections through multiple code examples, and outlines the essential principles developers must follow when overriding these methods to ensure correct functionality in hash tables.

HashCodeHashMapHashSet
0 likes · 11 min read
Understanding the Relationship Between hashCode() and equals() in Java
Selected Java Interview Questions
Selected Java Interview Questions
Oct 26, 2019 · Backend Development

Java Interview Essentials: Methods of java.lang.Object

This article reviews the 13 methods of Java's java.lang.Object class, explaining their purpose, typical usage in interviews, and related follow‑up questions such as equals vs ==, hashCode relationship, thread communication, and garbage collection.

JavaMethodsinterview
0 likes · 7 min read
Java Interview Essentials: Methods of java.lang.Object
Java Captain
Java Captain
Mar 31, 2018 · Fundamentals

Understanding Object Cloning in Java: Shallow vs Deep Copy

This article explains Java object cloning, detailing why cloning is needed, how to implement shallow and deep copies using the Cloneable interface and serialization, and provides comprehensive code examples illustrating the differences and pitfalls of reference copying.

CloneableCloningJava
0 likes · 15 min read
Understanding Object Cloning in Java: Shallow vs Deep Copy
Java Captain
Java Captain
Nov 11, 2017 · Fundamentals

Understanding Java's equals() and hashCode() Methods and How to Override Them

This article explains the default implementations of Java's Object.equals() and Object.hashCode(), the required contracts for overriding them, demonstrates their behavior in the String class, and provides practical guidelines and example code for correctly overriding these methods in custom classes.

HashCodeJavaString()
0 likes · 11 min read
Understanding Java's equals() and hashCode() Methods and How to Override Them