零碎知识

1、Big-Endian:具体是指最高位字节在地址最低位、最低位字节在地址最高位的顺序来存储数据,而Little-Endian使用相反的顺序来储存数据。

2、接口隐式abstract,方法隐式public abstract,字段隐式为public、static、final。

3、运行时字符串之间的连接操作(+)等同于:

new StringBuilder().append("firstString").append("secondString").toString()

4、如今很多servlet容器经常会内置web服务器(web server),因此很少有人区分java servelt容器和java web服务器了。

5、The term CRLF refers to Carriage Return (ASCII 13, \r) Line Feed (ASCII 10, \n). ... For example: in Windows both a CR and LF are required to note the end of a line, whereas in Linux/UNIX a LF is only required. In the HTTP protocol, the CR-LFsequence is always used to terminate a line.

6、控制反转和依赖注入的关系:

DI is a subset of IoC


IoC means that objects do not create other objects on which they rely to do their work. Instead, they get the objects that they need from an outside service (for example, xml file or single app service). 2 implementations of IoC, I use, are DI and ServiceLocator.


DI - Dependency Injection is concrete term, in which we provide dependencies of the object at run time by using different injection techniques viz. Setter Injection, Constructor Injection or by Interface Injection.

7、每个类加载器都可以定义一个属于自己的classpath路径

8、在使用ctrl+F搜索时会出现wrap-around或wrap-search供选择,它的意思是从光标处开始搜索,直到文档底部,如何还继续寻找,则从文档开始出寻找,直到原先光标的地方,也就是全文档查找。如果不启用,则查到底部则结束。

Wrap-around means the program will search for the text you specify beginning at the place in the document where you are currently positioned, and will continue past the end, to the beginning of the document back to your current position. In other words, wrap-around search will search the entire document irrespective of where you may be positioned within it. 

If you only want to search to the end of the document, turn off wrap-around search.

9、基本类型自动包装时调用了包装类的valueOf方法,自动拆箱时调用了包装类的intValue方法。

10、方法重写后访问修饰符可以修改成访问范围更广的,比如protect换成public。如果父类方法是private,那么子类同名方法不叫覆盖,而是隐藏。

11、子类方法的抛出异常列表不能出现:一个异常为父类方法的抛出列表异常的父类。子类方法可以没有异常,可以与父类无继承关系,或者为父类异常或其子类。https://stackoverflow.com/questions/9036016/inheritance-method-signature-method-overriding-and-throws-clause

12、cpu架构

cpu有很多架构,这三种很常见:ARM 、x86(IA-32、i386)、 x86_64(x64、AMD64、intel64)
架构是一个很抽象的概念,不能cpu产商可以生产同一架构的cpu。操作系统通常有对应不同cpu架构的版本。
x86包括i386、i686等处理器,支持32位地址空间。x64支持64位地址空间。
apm采用精简集指令,x86_64和x86采用复杂集指令。
树莓派是arm架构的。arm架构有很多版本,ARMv3道ARMv7支持32位地址空间,ARMv8-A架构支持64位。

参考:https://en.wikipedia.org/wiki/ARM_architecture https://en.wikipedia.org/wiki/X86 https://en.wikipedia.org/wiki/X86_64

https://serverfault.com/questions/610308/x86-i386-i686-amd64-i5-i7-archtecture-processor-confusion

https://stackoverflow.com/questions/14794460/how-does-the-arm-architecture-differ-from-x86

https://askubuntu.com/questions/54296/difference-between-the-i386-download-and-the-amd64

13、开机引导过程

上电,主板自动读取BIOS或UEFI(rom)中的固件(一段小程序),固件执行开机自检,可以访问硬盘和主存。在硬盘的MBR或GPT中找到引导程序(可以引导多个操作系统,grub2最受欢迎)。引导程序将内核加载到主存执行。最后内核运行用户空间的软件(分为系统软件和用户软件),比如图形界面接口来让用户登录之类的软件。

https://en.wikipedia.org/wiki/Booting

猜你喜欢

转载自blog.csdn.net/jdbdh/article/details/82533400