Logo F2FInterview

Java Interview Questions

Q   |   QA

Intefaces doesn't provide implementation hence a interface cannot implement another interface.

Yes an Interface can inherit another Interface, for that matter an Interface can extend more than one Interface.

Not possible. A Class can extend only one class but can implement any number of Interfaces.

Static variables are class level variables where all objects of the class refer to the same variable. If one object changes the value then the change gets reflected in all the objects.

Static varaibles are class level variables and they can't be declared inside a method. If declared, the class will not compile.

In order to link this F2FInterview's page as Reference on your website or Blog, click on below text area and pres (CTRL-C) to copy the code in clipboard or right click then copy the following lines after that paste into your website or Blog.

Get Reference Link To This Page: (copy below code by (CTRL-C) and paste into your website or Blog)
HTML Rendering of above code: