Results 1 to 3 of 3
Thread: About Exception
- 10-18-2010, 05:26 AM #1
Member
- Join Date
- Oct 2010
- Posts
- 14
- Rep Power
- 0
About Exception
Hi Friends,
Can anyone tell exactly,at wat situation we have to go to abstract class and at wat situation we have to go to interfaces.
And also in this code
interface i1
{
public void method1();
}
interface i2{
public void method1();}
class sample implements i1,i2{
// here we have to implement two method1() or just one is enough?
}
- 10-18-2010, 08:42 AM #2
Moderator
- Join Date
- Feb 2009
- Location
- New Zealand
- Posts
- 4,546
- Rep Power
- 11
// here we have to implement two method1() or just one is enough?
That's a good question. What happened when you tried it?
As far as abstract classes and interfaces go, google:+java +"abstract vs interface" yields 15000 results. An embarassment of riches! Perhaps you could start with Maximize flexibility with interfaces and abstract classes from JavaWorld.
- 10-18-2010, 08:49 AM #3
Moderator
- Join Date
- Feb 2009
- Location
- New Zealand
- Posts
- 4,546
- Rep Power
- 11
Similar Threads
-
Exception in thread "main" java.lang Exception In InitializerError
By kenzo2009 in forum New To JavaReplies: 4Last Post: 10-25-2010, 07:42 PM -
exception
By mohneesh in forum New To JavaReplies: 3Last Post: 08-16-2009, 02:28 PM -
Help with Exception
By bozovilla in forum New To JavaReplies: 2Last Post: 10-19-2008, 05:19 AM -
Exception
By rmaadil in forum JDBCReplies: 1Last Post: 05-19-2008, 12:45 PM -
Trouble with factory method - unhandled exception type Exception
By desmond5 in forum New To JavaReplies: 1Last Post: 03-08-2008, 06:41 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks