博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
基础储备—字面量,符号引用,直接引用
阅读量:4618 次
发布时间:2019-06-09

本文共 307 字,大约阅读时间需要 1 分钟。

字面量:

int i = 1;把整数1赋值给int型变量i,整数1就是Java字面量,String s = "abc";中的abc也是字面量。

符号引用(Symbolic References):符号引用以一组符号来描述所引用的目标,符号可以是任何形式的字面量,只要使用时能无歧义地定位到目标即可。方法名,类名,字段名都是符号引用

直接引用(Direct References):直接引用可以是直接指向目标的指针、相对偏移量或是一个能间接定位到目标的句柄。如果有了直接引用,那么引用的目标一定是已经存在于内存中。

 

转载于:https://www.cnblogs.com/zkkkk-/p/10494427.html

你可能感兴趣的文章
LeetCode 1061. Lexicographically Smallest Equivalent String
查看>>
LeetCode 841. Keys and Rooms
查看>>
LeetCode 1043. Partition Array for Maximum Sum
查看>>
LeetCode 923. 3Sum With Multiplicity
查看>>
LeetCode 750. Number Of Corner Rectangles
查看>>
LeetCode 983. Minimum Cost For Tickets
查看>>
LeetCode 723. Candy Crush
查看>>
LeetCode 881. Boats to Save People
查看>>
LeetCode 334. Increasing Triplet Subsequence
查看>>
LeetCode 877. Stone Game
查看>>
LeetCode 712. Minimum ASCII Delete Sum for Two Strings
查看>>
LeetCode 931. Minimum Falling Path Sum
查看>>
LeetCode 718. Maximum Length of Repeated Subarray
查看>>
LeetCode 446. Arithmetic Slices II - Subsequence
查看>>
LeetCode 740. Delete and Earn
查看>>
LeetCode 813. Largest Sum of Averages
查看>>
LeetCode 1143. Longest Common Subsequence
查看>>
LeetCode 1000. Minimum Cost to Merge Stones
查看>>
LeetCode 1130. Minimum Cost Tree From Leaf Values
查看>>
LeetCode 935. Knight Dialer
查看>>