当前位置:网站首页>2022-07-21 study notes of group 4 self-cultivation class (every day)
2022-07-21 study notes of group 4 self-cultivation class (every day)
2022-07-26 03:14:00 【Self cultivation class】
final keyword
The final , The ultimate
final A structure that can be modified :
- class public final class
The final class , Ultimate class
- attribute private final String name
final Modifier constants cannot be changed
Constant naming rules : All the letters of a word are capitalized , If it's multiple words , Divide... With underscores , You can't just declare no assignment
- Method private final void show
Can't be rewritten
Method rewrite annotation
@Override
We suggest that the rewritten annotation be indicated at the rewritten of the method
Ancestors :Object ( Top level parent class )
If a class doesn't specify who its parent class is , Then its parent is Object
Object There are 11 A way :
- hashCode( ): Its return value is actually the memory address of the object when it runs
hash Algorithm : General translation “ hash ”, Put any length of input , Through a hash algorithm, it is transformed into a fixed length output , Output results
Password encryption MD5 encryption
SHA family
- equals( ): and == No difference , Than the address , In order for subclasses to override
Integer Inside , There's a buffer , hold byte The number in the range is cached
- toString( ): Convert to string , When we use objects directly , Will call... By default toString Method , In order for subclasses to override
- finalize( ): Garbage collection methods
- Clone( ): clone , Must be realized
summary
Not much , But we need to understand more
边栏推荐
- GoLang日志编程系统
- GoLang 抽奖系统 设计
- Classic interview questions -- three characteristics of OOP language
- Hcip day 8 notes sorting (OSPF routing control, Appendix E, anti ring, shortest path calculation, republication))
- What is the difference between heap memory and stack memory?
- [C Advanced] deeply explore the storage of data (in-depth analysis + interpretation of typical examples)
- Unity quickly builds urban scenes
- Opencv 以指定格式保存图片
- Opencv saves pictures in the specified format
- Three years of software testing experience, salary has been stuck at 10K, how to improve and develop automated testing?
猜你喜欢

Digital commerce cloud DMS dealer management system solution: DMS system realizes business Omni channel and sales data collection

LeetCode·每日一题·剑指 Offer || 115.重建序列·拓扑排序

Small test (I)
![[Yuri crack man] brings you easy understanding - deep copy and shallow copy](/img/26/b7330c7f5fdac55c8f5e9fa24658ee.png)
[Yuri crack man] brings you easy understanding - deep copy and shallow copy

称霸薪酬榜!什么行业大有“钱”途?

Win11麦克风权限的开启方法

LeetCode·83双周赛·6128.最好的扑克手牌·模拟

Opencv 以指定格式保存图片

Managing databases in a hybrid cloud: eight key considerations

(九)属性自省
随机推荐
Digital commerce cloud DMS dealer management system solution: DMS system realizes business Omni channel and sales data collection
Win11更改磁盘驱动器号的方法
snownlp库各功能及用法
Programming example of STM32 state machine -- fully automatic washing machine (Part 1)
LeetCode·每日一题·919.完全二叉树插入器·层次遍历·BFS
How about GF Securities? Is it safe to open an account online?
CMD CPM command summary
Day 7 hcip notes sorting (OSPF configuration)
Machine learning foundation plan 0-2: what is machine learning? What does it have to do with AI?
Unity quickly builds urban scenes
canvas——绘制文本——饼图的修改
JSD-2204-酷鲨商城(管理商品模块)-Day02
Leetcode · 83 biweekly match · 6128. best poker hand · simulation
使用anaconda配置gpu版本的tensorflow(30系列以下显卡)
FPGA_ Initial use process of vivado software_ Ultra detailed
NFT因无意义而美丽
An article allows you to understand the relevance of cloud native containerization
YOLOv3: An Incremental Improvement
Managing databases in a hybrid cloud: eight key considerations
cmd cpm 命令汇总