代码之家  ›  专栏  ›  技术社区  ›  1 JustOnly 1

为什么“RealAlpple”和“Read NbEnter”方法不同步?

  •  1
  • 1 JustOnly 1  · 技术社区  · 7 年前

    我经常看到这些方法在 InputStream Java 9中的层次结构。想知道多个线程何时运行这些方法吗?例如, read(byte b[], int off, int len) readNbytes 方法几乎相同,但 readNBytes 不同步。为什么?

    1 回复  |  直到 7 年前
        1
  •  1
  •   geco17    7 年前

    StringBuilder StringBuffer

    readNbytes

    readAllBytes

    推荐文章