Comments on: Java 8: Declare Private and Protected Methods in Interfaces https://speedment.com/java-8-declare-private-and-protected-methods-in-interfaces/ Build Fast Java Applications for the Fastest Business Performance Fri, 01 May 2020 05:21:37 +0000 hourly 1 https://wordpress.org/?v=5.1.1 By: Unknown https://speedment.com/java-8-declare-private-and-protected-methods-in-interfaces/#comment-58 Fri, 23 Nov 2018 09:46:05 +0000 https://speedment.com/java-8-declare-private-and-protected-methods-in-interfaces/#comment-58 Really brilliant idea.

]]>
By: lettyharry https://speedment.com/java-8-declare-private-and-protected-methods-in-interfaces/#comment-67 Wed, 13 Jun 2018 04:55:15 +0000 https://speedment.com/java-8-declare-private-and-protected-methods-in-interfaces/#comment-67 Now day, everything is going to find a new but well settled and successful stream for their career. When I came to this blog, I really impressed by all the knowledge points mentioned here. Thank you for this assistance.
สอนภาษาอังกฤษตัวต่อตัว

]]>
By: Per Minborg https://speedment.com/java-8-declare-private-and-protected-methods-in-interfaces/#comment-68 Wed, 02 May 2018 18:51:58 +0000 https://speedment.com/java-8-declare-private-and-protected-methods-in-interfaces/#comment-68 If Foo is a generic type of T, then you can make your static method generic like this:

private static <T> int complicatedMethodWithManyLinesOfCode(Foo<T> foo)

]]>
By: Quách Thiên https://speedment.com/java-8-declare-private-and-protected-methods-in-interfaces/#comment-69 Wed, 02 May 2018 11:31:11 +0000 https://speedment.com/java-8-declare-private-and-protected-methods-in-interfaces/#comment-69 What if the interface has generic type? How can the static method inside Hidden class refer to a non static generic type?

]]>
By: anurag singh https://speedment.com/java-8-declare-private-and-protected-methods-in-interfaces/#comment-82 Sun, 03 Sep 2017 11:37:41 +0000 https://speedment.com/java-8-declare-private-and-protected-methods-in-interfaces/#comment-82 Nice post. Access Modifiers in Java .
thanks for sharing this great post.

]]>
By: schlegel11 https://speedment.com/java-8-declare-private-and-protected-methods-in-interfaces/#comment-83 Thu, 31 Aug 2017 20:11:50 +0000 https://speedment.com/java-8-declare-private-and-protected-methods-in-interfaces/#comment-83 Great 🙂
Thank you for this nice possibility.
Looking forward to java 9 😉

]]>
By: Per Minborg https://speedment.com/java-8-declare-private-and-protected-methods-in-interfaces/#comment-103 Fri, 04 Nov 2016 15:00:11 +0000 https://speedment.com/java-8-declare-private-and-protected-methods-in-interfaces/#comment-103 You are right. We only get private methods.

]]>
By: Unknown https://speedment.com/java-8-declare-private-and-protected-methods-in-interfaces/#comment-116 Wed, 29 Jun 2016 00:35:45 +0000 https://speedment.com/java-8-declare-private-and-protected-methods-in-interfaces/#comment-116 Nice workaround for private methods in interfaces 🙂

]]>
By: Unknown https://speedment.com/java-8-declare-private-and-protected-methods-in-interfaces/#comment-117 Fri, 24 Jun 2016 18:42:47 +0000 https://speedment.com/java-8-declare-private-and-protected-methods-in-interfaces/#comment-117 Hi,

> Private and protected access in interfaces were postponed to Java 9.

do you have any source of the information that Java 9 will support protected methods in interfaces? I only found
https://bugs.openjdk.java.net/browse/JDK-8071453
which adds private methods, but no mention of protected.

]]>