Interview Questions  

Go Back   Interview Questions > Interview Questions & Answers > Information Technology > Java > Core Java

Core Java Core Java Interview Questions, Learn by sharing Core Java Interview Questions asked in various companies, Get Career advices, Interview Procedures from Core Java experts, Post asked Core Java Interview Questions and Answers.

   

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-29-2008, 09:27 AM
Senior Member
 
Join Date: Feb 2008
Posts: 1,210
Default Can you create interface instance

Can you create interface instance ?
Reply With Quote
  #2 (permalink)  
Old 07-25-2008, 07:01 AM
Member
 
Join Date: Jul 2008
Location: West Bengal,India
Posts: 48
Default

No we can't create interface instance.
__________________
Asit Kumar Purohit.
SRIC,IIT Kharagpur.
West Bengal,India
Mail me
Reply With Quote
  #3 (permalink)  
Old 07-25-2008, 02:12 PM
Junior Member
 
Join Date: Jun 2008
Posts: 1
Default why not so?

can you explain it with example???
Reply With Quote
  #4 (permalink)  
Old 07-26-2008, 10:26 AM
Junior Member
 
Join Date: Jul 2008
Posts: 3
Default

interface is the high level of abstraction, since all methods in interface is abstract that's why we can't instantiate it, For instantiation implementation is necessary which is not there in interface .

Ex. interface A {
public void method1();
public void method2();
}
Reply With Quote
  #5 (permalink)  
Old 08-01-2008, 07:37 AM
Junior Member
 
Join Date: Aug 2008
Location: noida
Posts: 7
Default

interface is like contract letter in which u have all the guide lines wat to do.
when u implement any interface this is restriction that implement all those function that are given in the interface.
Reply With Quote
Reply

Tags
core java, java, software

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On