The Artima Developer Community
Sponsored Link

Java Buzz Forum
Friday Is Almost Over, But We Can Always Have A Late Quiz...

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Weiqi Gao

Posts: 1808
Nickname: weiqigao
Registered: Jun, 2003

Weiqi Gao is a Java programmer.
Friday Is Almost Over, But We Can Always Have A Late Quiz... Posted: Nov 14, 2008 4:40 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Weiqi Gao.
Original Post: Friday Is Almost Over, But We Can Always Have A Late Quiz...
Feed Title: Weiqi Gao's Weblog
Feed URL: http://www.weiqigao.com/blog/rss.xml
Feed Description: Sharing My Experience...
Latest Java Buzz Posts
Latest Java Buzz Posts by Weiqi Gao
Latest Posts From Weiqi Gao's Weblog

Advertisement

(Courtesy of crazybob.)

Bob Lee: Java: interface A extends B {} interface B extends A {} ⇒ javac says, "Error: cyclic inheritance." That's a good one for Weiqi.

6 minutes ago from twitterrific

Q: What happens when you compile the two files:

// A.java
public interface A extends B {
}

// B.java
public interface B extends A {
}

If the answer is obvious, try this: Change B.java into a marker interface then compile A.java. Put the class file aside. Do the same for B.java. Then bring both class files together.

Q: Will the following code compile against such A.class and B.class?

// C.java
public class C implements A, B {
}

Read: Friday Is Almost Over, But We Can Always Have A Late Quiz...

Topic: JSF Application: 404 error Previous Topic   Next Topic Topic: Continuous Integration Myth: Build Server == CI

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use