Answer Posted / sandeep sagala
Interface is used to get an 100% abstract class. By using
this class we cant create an object for this class. In this
there will be all the unimplemented methods only. No method
is implemented in this type of classes. The methods present
inside this interfaces are all static and public by default.
The attributes present inside this interfaces are public,
final and static by default.
| Is This Answer Correct ? | 4 Yes | 11 No |
Post New Answer View All Answers
Is overriding possible in java?
What is string value?
Explain an algorithm to find depth of a binary tree.
What data type is a string?
How many types of the indexof method are there for strings?
In a class implementing an interface, can we change the value of any variable defined in the interface?
What is the difference between yielding and sleeping in java programming?
Realized?
Why string is immutable or final in java
How will you calculate the depth of a binary tree if the tree contains 15 nodes?
What is a stringbuilder?
How do you sort arraylist in descending order?
What is final keyword?
What is the use of static class?
What does g mean in regex?