<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Java Interview questions: Multiple Inheritance</title>
	<atom:link href="http://codemonkeyism.com/java-interview-questions-mutliple-inheritance/feed/" rel="self" type="application/rss+xml" />
	<link>http://codemonkeyism.com/java-interview-questions-mutliple-inheritance/</link>
	<description></description>
	<lastBuildDate>Tue, 03 Jan 2012 15:08:49 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Michael Wu</title>
		<link>http://codemonkeyism.com/java-interview-questions-mutliple-inheritance/comment-page-1/#comment-427072</link>
		<dc:creator>Michael Wu</dc:creator>
		<pubDate>Thu, 10 Feb 2011 21:06:21 +0000</pubDate>
		<guid isPermaLink="false">http://codemonkeyism.com/?p=1466#comment-427072</guid>
		<description>I think question itself is fine. Just want to get answers. From answers, knowing the concpetion.

public interface I1
{
    public void work();
}

public interface I2
{
    String name = &quot;I2 name&quot;;
    public void work();
}

public class MultipInhe implements I1, I2
{

    @Override
    public void work()
    {
        // TODO Auto-generated method stub
        
    }    


    
    public static void main(String[] args) {
        System.out.println(name);
     }

   }

From which interface, work () method is interesting?</description>
		<content:encoded><![CDATA[<p>I think question itself is fine. Just want to get answers. From answers, knowing the concpetion.</p>
<p>public interface I1<br />
{<br />
    public void work();<br />
}</p>
<p>public interface I2<br />
{<br />
    String name = &#8220;I2 name&#8221;;<br />
    public void work();<br />
}</p>
<p>public class MultipInhe implements I1, I2<br />
{</p>
<p>    @Override<br />
    public void work()<br />
    {<br />
        // TODO Auto-generated method stub</p>
<p>    }    </p>
<p>    public static void main(String[] args) {<br />
        System.out.println(name);<br />
     }</p>
<p>   }</p>
<p>From which interface, work () method is interesting?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raphael</title>
		<link>http://codemonkeyism.com/java-interview-questions-mutliple-inheritance/comment-page-1/#comment-382440</link>
		<dc:creator>Raphael</dc:creator>
		<pubDate>Fri, 17 Dec 2010 14:24:16 +0000</pubDate>
		<guid isPermaLink="false">http://codemonkeyism.com/?p=1466#comment-382440</guid>
		<description>I think your questions are a notch too superficial. Independently of the kind of code inheritance you use, one big question always is: what do you have to do in order to get _and keep_ it working, assuming you can not control all code in the system?

What problems do you get once specifications and tests enter the field? Does the candidate understand the semantics of subtyping/inheritance (in general and in Java)?</description>
		<content:encoded><![CDATA[<p>I think your questions are a notch too superficial. Independently of the kind of code inheritance you use, one big question always is: what do you have to do in order to get _and keep_ it working, assuming you can not control all code in the system?</p>
<p>What problems do you get once specifications and tests enter the field? Does the candidate understand the semantics of subtyping/inheritance (in general and in Java)?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chankey Pathak</title>
		<link>http://codemonkeyism.com/java-interview-questions-mutliple-inheritance/comment-page-1/#comment-344341</link>
		<dc:creator>Chankey Pathak</dc:creator>
		<pubDate>Mon, 18 Oct 2010 09:26:27 +0000</pubDate>
		<guid isPermaLink="false">http://codemonkeyism.com/?p=1466#comment-344341</guid>
		<description>Yeah these are some good questions to ask in interview.</description>
		<content:encoded><![CDATA[<p>Yeah these are some good questions to ask in interview.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Java bookmark links, Jan 2010 – Week 3 &#124; Bookmark-link</title>
		<link>http://codemonkeyism.com/java-interview-questions-mutliple-inheritance/comment-page-1/#comment-266020</link>
		<dc:creator>Java bookmark links, Jan 2010 – Week 3 &#124; Bookmark-link</dc:creator>
		<pubDate>Tue, 19 Jan 2010 03:03:39 +0000</pubDate>
		<guid isPermaLink="false">http://codemonkeyism.com/?p=1466#comment-266020</guid>
		<description>[...] 3) 14 Jan 10 &#8211; Stephan Schmidt, Java Interview questions: Multiple Inheritance [...]</description>
		<content:encoded><![CDATA[<p>[...] 3) 14 Jan 10 &#8211; Stephan Schmidt, Java Interview questions: Multiple Inheritance [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rafael Naufal</title>
		<link>http://codemonkeyism.com/java-interview-questions-mutliple-inheritance/comment-page-1/#comment-266017</link>
		<dc:creator>Rafael Naufal</dc:creator>
		<pubDate>Tue, 19 Jan 2010 02:51:22 +0000</pubDate>
		<guid isPermaLink="false">http://codemonkeyism.com/?p=1466#comment-266017</guid>
		<description>An interesting question to ask the candidate is what&#039;s the difference between using composition and inheritance in Java. What are the advantages and disadvantages in applying the both strategies to design the classes.</description>
		<content:encoded><![CDATA[<p>An interesting question to ask the candidate is what&#8217;s the difference between using composition and inheritance in Java. What are the advantages and disadvantages in applying the both strategies to design the classes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan</title>
		<link>http://codemonkeyism.com/java-interview-questions-mutliple-inheritance/comment-page-1/#comment-265936</link>
		<dc:creator>Jonathan</dc:creator>
		<pubDate>Mon, 18 Jan 2010 19:44:52 +0000</pubDate>
		<guid isPermaLink="false">http://codemonkeyism.com/?p=1466#comment-265936</guid>
		<description>I was going to mention Qi4j specifically, but I didn&#039;t think too many people had heard of it. I really like how it allows an invocation stack to be built similar to using traits in Scala (with a simpler linearization), but I&#039;d prefer to be able to get that functionality without having to use the rest of the framework.

My interest has swayed from proxy based AOP stuff towards compile-time code introduction such as what the Project Lombok guys are doing.</description>
		<content:encoded><![CDATA[<p>I was going to mention Qi4j specifically, but I didn&#8217;t think too many people had heard of it. I really like how it allows an invocation stack to be built similar to using traits in Scala (with a simpler linearization), but I&#8217;d prefer to be able to get that functionality without having to use the rest of the framework.</p>
<p>My interest has swayed from proxy based AOP stuff towards compile-time code introduction such as what the Project Lombok guys are doing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bubak</title>
		<link>http://codemonkeyism.com/java-interview-questions-mutliple-inheritance/comment-page-1/#comment-265226</link>
		<dc:creator>bubak</dc:creator>
		<pubDate>Fri, 15 Jan 2010 16:54:38 +0000</pubDate>
		<guid isPermaLink="false">http://codemonkeyism.com/?p=1466#comment-265226</guid>
		<description>JVM and bytecode supports multiple inheritance. It is just not enabled in Java Compiler</description>
		<content:encoded><![CDATA[<p>JVM and bytecode supports multiple inheritance. It is just not enabled in Java Compiler</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jordan Stewart</title>
		<link>http://codemonkeyism.com/java-interview-questions-mutliple-inheritance/comment-page-1/#comment-265141</link>
		<dc:creator>Jordan Stewart</dc:creator>
		<pubDate>Fri, 15 Jan 2010 09:25:07 +0000</pubDate>
		<guid isPermaLink="false">http://codemonkeyism.com/?p=1466#comment-265141</guid>
		<description>*I&#039;ll qualify that statement by adding that I was only thinking about &#039;class&#039; definitions at the time. I&#039;m not sure what I&#039;d call the &#039;extends&#039; relationship on an interface - perhaps that *would* be &quot;interface inheritance&quot; :-)


@Stephan - Qi4J looks really interesting - quite a different way to approach things! Have you built anything with it?</description>
		<content:encoded><![CDATA[<p>*I&#8217;ll qualify that statement by adding that I was only thinking about &#8216;class&#8217; definitions at the time. I&#8217;m not sure what I&#8217;d call the &#8216;extends&#8217; relationship on an interface &#8211; perhaps that *would* be &#8220;interface inheritance&#8221; :-)</p>
<p>@Stephan &#8211; Qi4J looks really interesting &#8211; quite a different way to approach things! Have you built anything with it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jordan Stewart</title>
		<link>http://codemonkeyism.com/java-interview-questions-mutliple-inheritance/comment-page-1/#comment-265137</link>
		<dc:creator>Jordan Stewart</dc:creator>
		<pubDate>Fri, 15 Jan 2010 09:16:23 +0000</pubDate>
		<guid isPermaLink="false">http://codemonkeyism.com/?p=1466#comment-265137</guid>
		<description>As I see it, you *implement interface* and you *inherit implementation*.
With an interface there is nothing to inherit because an interface is abstract, it has no substance. An implementation of that interface is concrete and so can be inherited.

So there is no &#039;interface inheritance&#039; - that&#039;s implementation.

Java has multiple implementation / single inheritance.</description>
		<content:encoded><![CDATA[<p>As I see it, you *implement interface* and you *inherit implementation*.<br />
With an interface there is nothing to inherit because an interface is abstract, it has no substance. An implementation of that interface is concrete and so can be inherited.</p>
<p>So there is no &#8216;interface inheritance&#8217; &#8211; that&#8217;s implementation.</p>
<p>Java has multiple implementation / single inheritance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stephan</title>
		<link>http://codemonkeyism.com/java-interview-questions-mutliple-inheritance/comment-page-1/#comment-265113</link>
		<dc:creator>stephan</dc:creator>
		<pubDate>Fri, 15 Jan 2010 06:20:15 +0000</pubDate>
		<guid isPermaLink="false">http://codemonkeyism.com/?p=1466#comment-265113</guid>
		<description>@Jonathan: You&#039;re right, the best I have seen is Qi4J which brings it to extremes. Richard is very deep into DDD using mixins.</description>
		<content:encoded><![CDATA[<p>@Jonathan: You&#8217;re right, the best I have seen is Qi4J which brings it to extremes. Richard is very deep into DDD using mixins.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cedric</title>
		<link>http://codemonkeyism.com/java-interview-questions-mutliple-inheritance/comment-page-1/#comment-265014</link>
		<dc:creator>Cedric</dc:creator>
		<pubDate>Thu, 14 Jan 2010 22:53:08 +0000</pubDate>
		<guid isPermaLink="false">http://codemonkeyism.com/?p=1466#comment-265014</guid>
		<description>If you gave me these answers, I would probably give you a bad grade :-)

First because the question you are asking is vague: what kind of inheritance are you talking about, implementation or interface?

Java doesn&#039;t emulate anything:  it supports multiple inheritance of interfaces and it doesn&#039;t support multiple inheritance of implementation. C++ supports both.</description>
		<content:encoded><![CDATA[<p>If you gave me these answers, I would probably give you a bad grade :-)</p>
<p>First because the question you are asking is vague: what kind of inheritance are you talking about, implementation or interface?</p>
<p>Java doesn&#8217;t emulate anything:  it supports multiple inheritance of interfaces and it doesn&#8217;t support multiple inheritance of implementation. C++ supports both.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Random Links #111 &#124; YASDW - yet another software developer weblog</title>
		<link>http://codemonkeyism.com/java-interview-questions-mutliple-inheritance/comment-page-1/#comment-265003</link>
		<dc:creator>Random Links #111 &#124; YASDW - yet another software developer weblog</dc:creator>
		<pubDate>Thu, 14 Jan 2010 22:00:58 +0000</pubDate>
		<guid isPermaLink="false">http://codemonkeyism.com/?p=1466#comment-265003</guid>
		<description>[...] Java Interview questions: Multiple Inheritance I need to take a closer look on mixins and traits [...]</description>
		<content:encoded><![CDATA[<p>[...] Java Interview questions: Multiple Inheritance I need to take a closer look on mixins and traits [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan</title>
		<link>http://codemonkeyism.com/java-interview-questions-mutliple-inheritance/comment-page-1/#comment-264983</link>
		<dc:creator>Jonathan</dc:creator>
		<pubDate>Thu, 14 Jan 2010 20:24:05 +0000</pubDate>
		<guid isPermaLink="false">http://codemonkeyism.com/?p=1466#comment-264983</guid>
		<description>It&#039;s not too hard to simulate multiple inheritance using dynamic proxies. Most AOP frameworks allow something similar via introductions or mixins. I think it would be nice, in an interview, to explore how more recent languages have compensated from Java&#039;s single inheritance limitations, such as with Scala&#039;s traits.</description>
		<content:encoded><![CDATA[<p>It&#8217;s not too hard to simulate multiple inheritance using dynamic proxies. Most AOP frameworks allow something similar via introductions or mixins. I think it would be nice, in an interview, to explore how more recent languages have compensated from Java&#8217;s single inheritance limitations, such as with Scala&#8217;s traits.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk (user agent is rejected)
Database Caching 3/23 queries in 0.041 seconds using disk

Served from: codemonkeyism.com @ 2012-02-04 06:54:35 -->
