Click to See Complete Forum and Search --> : if u want test ur understading in java


hadef
06-09-2005, 05:00 AM
her ques and i know the answer but to check ur knowlege

but please to check the compiler

can abstract class have final method??

the second one

can we exends final class and make an instance of it...??

think

and if any one have ques like this please ask

:D

buntine
06-09-2005, 05:45 AM
It's hard to understand what your even talking about. I suggest you use grammer if you people to reply.

1) A method cannot be final and abstract because a final method cannot be overridden by a subclass. An abstract class can have final methods within it provided they are not marked as abstract.

2) Of coarse not. Final classes cannot be subclassed.

Regards.

hadef
06-09-2005, 09:08 AM
:D sorry i was in harry .... :D

yeah u got it.........nice job

natefries
06-09-2005, 02:52 PM
wow, I knew that, and I'm only an AP java student...