当前位置:网站首页>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
边栏推荐
- CMD CPM command summary
- Machine learning foundation plan 0-2: what is machine learning? What does it have to do with AI?
- Hello World driver (II) - primary version
- Opencv报错:(parameter or structure field))Unrecognized or unsupported array type in functon ‘cvGetMat‘
- Opencv 在图像上进行标注(画框+写字)
- els 注册窗口类、创建窗口类、显示窗口
- [NOIP2001 普及组]装箱问题
- .net serialize enumeration as string
- Swin Transformer【Backbone】
- Usage of '...' in golang
猜你喜欢

【TensorFlow&PyTorch】图像数据增强API

Opencv annotates the image (picture frame + writing)

STM - exti external interrupt learning notes

There are a group of students in the class who have got the test results in Chinese and mathematics. Please select the students whose total score is the first

万维网、因特网和互联网的区别

snownlp库各功能及用法

FPGA_Vivado软件初次使用流程_超详细

STM32 - DMA notes

Implement a method to find the sum of the number k and m in the array

班级里有一群学生考试结果出来了,考了语文和数学两门,请筛选出总分是第一的同学
随机推荐
Understand preloading and lazy loading, and learn slow animation
[SQL] CASE表达式
Implement a method to find the sum of the number k and m in the array
Opening method of win11 microphone permission
Win11更改磁盘驱动器号的方法
.net serialize enumeration as string
[Yuri crack man] brings you easy understanding - deep copy and shallow copy
Canvas -- draw curve -- wall clock, pie chart, five pointed star
VR panoramic shooting and production of business center helps businesses effectively attract people
Classic interview questions -- three characteristics of OOP language
Use eventlog analyzer for log forensics analysis
Managing databases in a hybrid cloud: eight key considerations
Unity快速搭建城市场景
Leetcode · daily question · sword finger offer | | 115. reconstruction sequence · topological sorting
Opencv 在图像上进行标注(画框+写字)
图解LeetCode——5. 最长回文子串(难度:中等)
Small test (I)
Canvas - drawing pictures - dynamic drawing production
一切的源头,代码分支策略的选择
YOLOv3: An Incremental Improvement