Load on demand

Time:2021-1-17

Learning notes loaded on demand

In Germany, at first they went after Communists, and I didn’t speak – because I wasn’t a communist;
Then they went after the Jews, and I didn’t speak – because I was not a Jew;
Later, they chased union members, and I didn’t speak because I was not a union member;
After that they went after Catholics, and I didn’t speak – because I was Protestant;
Finally, they came to me, but no one stood up to speak for me

——Martin nemora’s memorial to the Holocaust in Boston, USA

Recommended Today

DK7 switch’s support for string

Before JDK7, switch can only support byte, short, char, int or their corresponding encapsulation classes and enum types. After JDK7, switch supports string type. In the switch statement, the value of the expression cannot be null, otherwise NullPointerException will be thrown at runtime. Null cannot be used in the case clause, otherwise compilation errors will […]