GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • 大彬
  • 学习圈
  • 基础
  • 集合
  • 并发
  • JVM
  • Java8
  • Tomcat
  • Spring面试题
  • SpringMVC面试题
  • Mybatis面试题
  • SpringBoot面试题
  • SpringCloud详解
  • SpringCloud面试题

This view

  • Original page
  • New address

GeezerVison is showing www.topjavaer.cn — 函数式编程

函数式编程

大彬
      小于 1 分钟

      # 函数式编程

      面向对象编程:面向对象的语言,一切皆对象,如果想要调用一个函数,函数必须属于一个类或对象,然后在使用类或对象进行调用。面向对象编程可能需要多写很多重复的代码行。

              Runnable runnable = new Runnable() {
                  @Override
                  public void run() {
                      System.out.println("do something...");
                  }
              };
      
      

      函数式编程:在某些编程语言中,如js、c++,我们可以直接写一个函数,然后在需要的时候进行调用,即函数式编程。

      Loading...
      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.