User Comments for the tutorial:

Interface in Java

Total comments: 33      View Tutorial    Discuss: Interface in Java



About Interface
I want to know the use of interface. we are declaring the methods inside the interface and defining the methods in the program. we can do the same without the interface also. then whats the use of the interface. Please send me about interface in deta 

i want to know, like if a subclass of a class implementing Serilizable interface, don't want to be serialize, so how can we prevent this Serialization.... 

method overloading and method overriding
i want to different between method overloading and method overriding? 3 to 4 differences giv me plzz send me my mail 

Java inteface
Hi... plz give me brief intro of interface in java.. with an example to implements it... i will be thank full .....thanks......... 

we can`t create object for interface.. because all methods are abstract. but in abstract class we are instantiating object ... how it is?? 

regarding util packages
i am having doubt regarding util packages. and i want to know what is the difference between arraylist, vector and hash map , hashtable and iterator, list iterator, enumerators. where we will use and when to use this  

regarding inheritance concept
what is the use of inheritance AND WHEN TO USE THIS? what i understood is while using inheritance we can reuse the code. please provide me more informaton regarding this  

what java is pure oop. 

regarding interface
i want to known the use of interface with example 


java nots
pleese sent me java nots and programs file  

I Find it Better Website for java. 

about use of interface
I want to know the use of interface. we are declaring the methods inside the interface and defining the methods in the program. we can do the same without the interface also. then whats the use of the interface?  

In package with out inheritance(extends) how we use seperate class and how we access in main class. 

Explain how run-time polymorphism can be achieved using interfaces with sample program? 

abstract class and interface
When should we use abstract class?Why should we use abstract class? when should we use interface instead of abstract class?  


More explaination for difference between Interface
Hi, Can i get a more detailed information for difference between Interface and abstract classes . Specially for point 4 with some coding example. Thanks, Jayant Singh 

ur meterial is well ang good for learing java  

Can you tell me difference between equals and == in Strings.And intern method With a good example. 

abt java
send me complete details on java to my id  

Serializable interface
Compiler will give any error. See the following code:- import*; public class OT { public static void main(String j[]) throws Exception { TT t = new TT(); ObjectOutputStream oos = new ObjectOutputStream(System.out); oos.writeObject(t) 

You cant undo Serialization
NO you cant do this. If you have this type of requirement then u have to use EXternizable interface and implement its writerExternal and readExternal method urself. 

Interface and abstract difference
In the above statements "An abstract class must have at least one method with empty implementation."but this is a wrong statement even if it doesn't have atleast one method with empty implementaion we can declare a class as an abstract.I checked this 

this is awesome really nice to understand  

Is this correct ?
An abstract class must have at least one method with empty implementation. 

Relpy to Jayant Singh
Hi, Basically we need understand why to opt an Interface or an Abstract Class. Interface is basically a standard or acts as a plugin. If any class implements an inteface then all the methods present in the interface has to be defined in that clas 

Marker interface
It is a good explanation for marker interface. Thanks! 

please give the real time example for interface in java? 

Marker Interface
HI Can i get more details about Marker Interface 

Abstract class
An abstract is not obliged to have at least an abstract method as has been stated above. A class can be an abstract class without having any abstract method. However, if we define an abstract method then the class has to be an abstract class 

Definition of Abstract class
Dear Sir, in your comparison table column one you have written that Abstract class must have at least one abstract method which does not hold true exactly, an abstract class can be abstract even if it does not have single abstract method. Regards S 

Abstract class
Any normal class can be abstract no necessary to have at least one abstract Method.All the method may be defined,all may be undefined or both can be as well as. 

Related Tutorial and Articles
Java Beginners

interface.  Write short note on interface.   Please visit the following link: Java Interface 

Java Beginners

INTERFACE  how interface support multiple inheritance in java 

Java Interview Questions

interface  What is marker interface ?? what is its use in java programming?? is this us in programming ??Explain is implementation with code 

Java Interview Questions

interface  what the use of interface?   An interface is one... variables.Any class can implement(inherit)the interface and make use of the methods(functions) and variables within it. In java, multiple inheritance 

Java Magazine Questions

interface  why do we need interface in java..if it`s usefull for to obtain multiple inheritance in the sense how it gonna be achieved...and i can...)...the y we need interface...THis is question often i heard from my developer 

Java Beginners

for Interface in java? and want to know why they used interface instead of multiple inheritance? Thanks in advance   An interface is one which has abstract... method it will take.It creates complexity.Therefore java uses Interface 

Java Interview Questions

; Through interface, we can achieve the multiple inheritance. Java does...interface  What is the exact use of interface in real time scenario? some people says that interface provides multiple inheritance. Is it true 

Java Beginners

interface  sir/mam, pls tell me how interfaces reduce duplicasy in java.. atul 

Java Beginners

about interface - Java Beginners
about interface  can anyone explain to me the implementation of the given line Set si=new HashSet(); Problem is that Set is an interface and HashSet is a class... so how instantiation of interface is possible..or..what 


Java Interface
Java Interface In this section we will discuss about the interface in Java... interfaces. Interface in Java is created for referencing something to other. To create an interface in Java the keyword "interface" is used