File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Interview question Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Interview question" Watch "Interview question" New topic
Author

Interview question

Uma Kanth
Greenhorn

Joined: Sep 16, 2002
Posts: 20
Can a class be declared as
class A extends Applet and implements Servlet{
}
Sudharsan Govindarajan
Ranch Hand

Joined: Jul 03, 2002
Posts: 319
It very well can be declared, but what are you planning to do with it? BTW, the declaration needs to be abstract if you are not planning to implement the Servlet interface methods


Joy is a radiation
Sudharsan Govindarajan
Ranch Hand

Joined: Jul 03, 2002
Posts: 319
oh! I missed the topic title. If those were the exact lines given in the interview, the answer is 'NO'.
But this is valid (will compile):

sudharsan
 
 
subject: Interview question
 
Threads others viewed
WA #1.....word association
Doubt about diagram class
Doubt about diagram class (realization)
can non-static inner class access any member
andrew has wii
IntelliJ Java IDE