The Artima Developer Community
Sponsored Link

Java Buzz Forum
Friday Java Quiz: Know Your Interfaces

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 Java Quiz: Know Your Interfaces Posted: Jun 20, 2008 6:24 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Weiqi Gao.
Original Post: Friday Java Quiz: Know Your Interfaces
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

We go back to basics this week.

Q: Given the following interface definition:

interface Foo {
  int ZERO = 0;
  public int ONE = 1;
  public static int TWO = 2;
  public static final int THREE = 3;

  void first();
  abstract void second();
  public abstract void third();
}

Which of the following are true (choose all that apply):

  1. ZERO is not public
  2. ONE is not static
  3. TWO is not final
  4. first() is not abstract
  5. second() is not public
  6. None of the above
  7. One of the above
  8. Two of the above
  9. Three of the above
  10. All of the above

And we reverse back to strict rules: no books, no googling, no internet, no compiling. Just stare at the code and think.

Read: Friday Java Quiz: Know Your Interfaces

Topic: Object Oriented, Relational Databases and XML Previous Topic   Next Topic Topic: Ashok Reddy on Rational Jazz at IBM RSDC 2008 from PeopleOverProcess.com

Sponsored Links



Google
  Web Artima.com   

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