• 2024-11-05synchronized的monitor监视器
    publicclassT{@SneakyThrowspublicstaticvoidmain(String[]args){System.out.println("此行后加锁monitorenter");synchronized(T.class){System.out.println("hellomonitor");}Syste