aspose file tools*
The moose likes Beginning Java and the fly likes java classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "java classes" Watch "java classes" New topic
Author

java classes

dessie ramnath
Greenhorn

Joined: Sep 07, 2009
Posts: 1
Past year paper(Multichoice question)
Q4.Consider tha class classA , abstrcat class classB, and final class classC have been defined.Which one of the following is correct?

A. classA extends classC implements classB
B. classA extends classB, classC
C. classA extends classB
D. classB implements classC

Please explain your answer
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60082
    
  65

Please read this.

What do you think the answer is? Please explain your answer.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

While you're explaining things, explain why the question isn't nonsensical, because I don't get it.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36599
    
  16
I think it is a class header line and the question means "which of these will actually compile?" Which makes it a very simple question, actually.

And welcome to JavaRanch
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Oh, that makes sense... *whew* All I could think of was "well wouldn't that depend on the code?"
karimkhan pathan
Ranch Hand

Joined: Jul 14, 2008
Posts: 86
no one answered the question !!!


karim
Raghavan Muthu
Ranch Hand

Joined: Apr 20, 2006
Posts: 3344

karimkhan pathan wrote:no one answered the question !!!


because all of them are *really* helping the Original poster and the followers to think and come up with their own possible answers


Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
salvin francis
Ranch Hand

Joined: Jan 12, 2009
Posts: 917

Let me answer the Question ....




Naa, here is a Hint:

What can you NOT do with a Final class ??


Hope i have not made it too easy

My Website: [Salvin.in] Cool your mind:[Salvin.in/painting] My Sally:[Salvin.in/sally]
Raghavan Muthu
Ranch Hand

Joined: Apr 20, 2006
Posts: 3344

salvin francis wrote:Let me answer the Question ....
What can you NOT do with a Final class ??


where is *final* coming into picture now?
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19557
    
  16

dessie ramnath wrote:and final class classC


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Raghavan Muthu
Ranch Hand

Joined: Apr 20, 2006
Posts: 3344

Thanks Rob. I was looking at the 4 options mainly!
salvin francis
Ranch Hand

Joined: Jan 12, 2009
Posts: 917

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java classes
 
Similar Threads
Inheritance
Parsing a variable
invoking super constructors.
Subclass calls super class constructor then how many object will be created