Coder Social home page Coder Social logo

javaknowledgepointtest's Introduction

Java重要知识点备忘

  • classLoader

    • 在JVM中表示两个class对象是否为同一个类对象存在两个必要条件

      1. 类的完整类名必须一致,包括包名。
      2. 加载这个类的ClassLoader(指ClassLoader实例对象)必须相同。
  • concurrent 并发包

    • 线程池
      1. newFixedThreadPool和newSingleThreadExecutor:
        • 主要问题是堆积的请求处理队列可能会耗费非常大的内存,甚至OOM。
      2. newCachedThreadPool和newScheduledThreadPool:
        • 主要问题是线程数最大数是Integer.MAX_VALUE,可能会创建数量非常多的线程,甚至OOM。
    • Lock
      • 公平锁模式下,的tryLock也是非公平的
  • container 容器

    • 非并发容器

    • 并发容器

      collections

      • CopyOnWrite
  • Java8 新特性

    1. 删除了 PermGen,类加载到JVM外的内存上Metaspace(元空间)
    2. Lambda 表达式
    3. 函数式接口
    4. 方法引用
    5. 接口默认方法
    6. Stream API
    7. Data Time API
    8. Optional 类
  • Java9 新特性

    1. 模块系统
    2. 。。。
  • objectmemory 对象内存大小计算,运行程序,dump内存

  • RPC

    1. rmi 方式实现远程方法调用
    2. ObjectInputStream 和 ObjectOutputStream 方式实现远程调用
  • web HTTP协议理解,用Socket模拟TomcatServer,可以接收并返回HTTP请求

  • thread

    • 子线程异常处理(父线程不能捕获子线程抛出的异常)
      1. 在子线程中 try ... catch
      2. 设置 UncaughtExceptionHandler
      3. 通过Future的get方法捕获异常
  • future

javaknowledgepointtest's People

Contributors

wengliang086 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.