QuesHub > Java > can > static > ASK DETAIL

Can interface be declared as static in Java?

Julian Ward | 2023-06-09 06:42:28 | page views:1131
I'll answer
Earn 20 gold coins for an accepted answer.20 Earn 20 gold coins for an accepted answer.
40more

Emma Johnson

Studied at Yale University, Lives in New Haven, CT
Java 8 Had changed the world you can have static methods in interface but it forces you to provide implementation for that. If a member of a class is declared as static, it can be used with its class name which is confined to that class, without creating an object.Aug 22, 2008
2023-06-16 06:42:28

Charlotte Allen

QuesHub.com delivers expert answers and knowledge to you.
Java 8 Had changed the world you can have static methods in interface but it forces you to provide implementation for that. If a member of a class is declared as static, it can be used with its class name which is confined to that class, without creating an object.Aug 22, 2008
ask:3,asku:1,askr:137,askz:21,askd:152,RedisW:0askR:3,askD:0 mz:hit,askU:0,askT:0askA:4