Hi Every One I Have Small Doubt Please answer
This????????????????????????????
I Want to use AbstractList class
methods(java.util.AbstractList)
My Program is
import java.util.*;
class DemoOne extends AbstractList
{
public static void main(String[] args)
{
AbstractList a=new DemoOne();//This One is Correct??
DemoOne a1=new DemoOne();//This One is Correct?? Both Are
Not Working
System.out.println("Hello World!"+a);
System.out.println("Hello World!"+a1);
}
}
Error IS:
DemoOne.java:2: DemoOne is not abstract and does not
override abstract method get(int) in java.util.AbstractList
class DemoOne extends AbstractList
AnyOne can Please Provide The
Solution????????????????????????? Plzzzzzzz
Answer Posted / raghav
Bcoz ur class ( DemoOne ) is concrete class so u r forced to provide body to that methods that r unimplemented in java.util.AbstractList
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can a class be final?
Does java set allow duplicates?
What was java originally called?
What is a string token?
Why string is a class?
How do you write methodology?
What are the 8 primitive data types in java?
what is instanceof operator used in java?
What are implicit objects in java?
What are internal and external variables?
How to compare strings in java?
What are abstract classes and anonymous classes?
What are format specifiers in java?
Explain the features of java?
What is foreach loop in java?