Snippet Library

Browse | Submit A New Snippet | Create A Package

Snippets by language: Java

Snippet ID Title Creator
Packages Of Snippets
6HelloworldArtur Fibonaci
18TestRaul Unskipp
21Write Java cardLinscomt Silva
Writing a custom applet commands with calls and responses.
Save the applet in a JCOP 2.2.2 Post chipped or higher.
41runescapeCarlos Donizete Froes
Set in a fantasy world of war, landscapes and sinister powers
62How to differentiate Interfaces & Abstract class in java?Margaretta Boye
Hello , i am learning Java for Android.So i was confused about differentiate Interfaces & Abstract class in java.Now have clear this difference & i tried to write clearly.

Abstract class and interface both are used to achieve abstraction where we can declare the abstract methods. Abstract class and interface both can't be instantiated.
Margaretta Boye - Developer at

Abstract class:
1) Abstract class can have abstract and non-abstract methods.
2) Abstract class doesn't support multiple inheritance.
3) Abstract class can have final, non-final, static and non-static variables.

1) Interface can have only abstract methods.
2) Interface supports multiple inheritance.
3) Interface has only static and final variables.
Powered By FusionForge