public class TestDemo {
public static void main(String[] args) {
String a = "hello";
String b = "hello";
String c = new String("hello");
String d = String.valueOf("hello");
String e = "he" + "llo";
System.out.println(a==b);
System.out.println(a==c);
System.out.println(a==d);
System.out.println(a==e);
}
}
运行结果:
true
false
true
true
IOException与RunTimeException平级
原子性、可见性、有序性
参考博文:https://blog.csdn.net/weixin_41101173/article/details/79889464
public class TestDemo {
public static void main(String[] args) {
int a = 0;
int b = 0;
for (int i = 0; i < 10; i++) {
a = a++;
b = ++b;
}
System.out.println(a);
System.out.println(b);
}
}
运行结果:
0
10
对称加密:DES、AES、3DES
参考博文:https://www.cnblogs.com/Terry-Wu/p/10314315.html
非对称加密:RSA、DSA、ECC、DH
参考博文:https://blog.csdn.net/u014294681/article/details/86705999
本文地址:https://blog.csdn.net/Lyh_2015/article/details/107590249
如对本文有疑问, 点击进行留言回复!!
Android 4.0使用Kotlin调用C语言以及汇编语言
Java Class.forName()用法和newInstance()方法原理解析
网友评论