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
Given a singly linked list, determine whether it contains a loop or not without using temporary space?
What are the special characters?
What is exception hierarchy in java?
Can we create a constructor in abstract class?
Why is java multithreaded?
When do you get classcastexception?
What is the benefit of singleton pattern?
Does google use java?
What is the difference between a synchronized method and a synchronized block?
Hi i am creating desktop application in that i want calling to mobile number. i have java telephone api (JTAPI) but i dont understand how it configure & use plese help me
What is use of super keyword in java?
How many classes can any class inherit java?
How can you handle java exceptions?
What is difference between final and immutable?
What are actual parameters?