Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In the reskinned Java SE 8 docs, what is the difference between concrete and instance methods?

Tags:

java

java-8

New tabs have been added to the method summary. "Concrete" and "instance" suggest more or less the same thing to me. What is the difference?

Java SE 7: Java SE 7 screenshot

Java SE 8: Java SE 8 screenshot

like image 529
jordanpg Avatar asked Aug 30 '14 21:08

jordanpg


2 Answers

          Static        Abstract        All Other
InstanceM   N               Y              Y
ConcreteM   Y               N              Y
All         Y               Y              Y

like image 77
Yongjun Zhang Avatar answered Sep 21 '22 13:09

Yongjun Zhang


  • A concrete method is a method that's not abstract.

  • An instance method is a method that's not static.

(Therefore, all static methods are concrete methods but are not instance methods.)

like image 41
arshajii Avatar answered Sep 23 '22 13:09

arshajii