Home > Technical Interviews > Computer Science & Engineering > Java Programming > Core Questions and Answers
56. | Can we define private and protected modifiers for variables in interfaces? |
No |
57. | What is Externalizable? |
Externalizable is an Interface that extends Serializable Interface. And sends data into Streams in Compressed Format. It has two methods, writeExternal(ObjectOuput out) and readExternal(ObjectInput in) |
58. | What modifiers are allowed for methods in an Interface? |
Only public and abstract modifiers are allowed for methods in interfaces. |
59. | What is a local, member and a class variable? |
Variables declared within a method are "local" variables. |
60. | What is an abstract method? |
An abstract method is a method whose implementation is deferred to a subclass. |