Java first day study experience

zhaozj2021-02-16  106

A Java object uses a single structure (like Delphi), which is Object, stored in the package java.lang. Java.lang The default enters every "Java code file.

Two Java has 6 places for saving data: registers, stacks, stacks, static storage, constant storage, non-RAM

Basic types or main types are not objects, stored in the stack

The Java object handle is stored in the stack, and the object is placed in the stack.

Three Java does not quote forward

Four i advanced operation, regeneration, I , first-value, then execute operation

? So Int J, i = 1 ??? If j = i j = 2 j = i J = 1

Five ==,! = When the object is compared, it is the handle of the object, and it is also the default for the object method equals, but most Java class libraries implement equals (), and their new classes need themselves. achieve.

转载请注明原文地址:https://www.9cbs.com/read-10252.html

New Post(0)