aspose file tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Assignments Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply Bookmark "Assignments" Watch "Assignments" New topic
Author

Assignments

Edisandro Bessa
Ranch Hand

Joined: Jan 19, 2006
Posts: 584
Given :

interface I1{}
class C1 {}
class C2 extends C1{}
class C3 extends C1{}
class C4 implements I1{}
class C5{}

and the following declarations and assignments :


Any comments about the last two sentences would be highly appreciated.

Thanks.


"If someone asks you to do something you don't know how to, don't tell I don't know, tell I can learn instead." - Myself
Changchun Wang
Ranch Hand

Joined: Feb 15, 2006
Posts: 83
you will find the answer from this url

the complier infer the subclass of c5 maybe implements il interface
so it will compile well,but generate a runtime time error

[ March 31, 2006: Message edited by: Changchun Wang ]
Edisandro Bessa
Ranch Hand

Joined: Jan 19, 2006
Posts: 584
Thank you Changchun,

Very good link. Thanks.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Assignments
 
Similar Threads
how many objects will be eligible for garbage collection
Help :: Illegal Casting Question
help me for this question... (interface question)
Interfaces?
inheritance