What are some characteristics of interference class?



What are some characteristics of interference class?..

Answer / Ram Niwas Paswan

1. An interface is an abstract type that is completely composed of abstract methods, constants, and possibly default methods introduced in Java 8.
2. Interfaces cannot be instantiated; they can only be implemented by classes or extended by other interfaces.
3. Multiple classes can implement the same interface.
4. An interface declares a contract that the implementing class must adhere to.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is import java util arraylist?

1 Answers  


Can list be final in java?

1 Answers  


I have multiple constructors defined in a class. Is it possible to call a constructor from another constructor’s body?

1 Answers  


Write a java program to print fibonacci series?

1 Answers  


What is map and hashmap in java?

1 Answers  


How to avoid the runtime exception ?

2 Answers  


In Java list the methods that can be overridden?

1 Answers   Accenture,


How to convert string to byte array and vice versa?

1 Answers  


Why is java so important?

1 Answers  


What is a ternary operator in java? What is an interface?

1 Answers  


Can a class extend 2 classes in java?

1 Answers  


The class "Class" is belongs to which package?? a) java.lang b)java.lang.reflect c)java.util d)None

4 Answers  


Categories