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 / prashanth.vuthuru

AnyOne can Please Provide The
Solution????????????????????????? Plzzzzzzz

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the function of compareto in java?

593


Explain importance of finally block in java?

587


What is void data type?

581


Where is jre installed?

594


What do you understand by access specifiers in Java?

586






When should you use arraylist and when should you use linkedlist?

498


List the interfaces which extends collection interface?

540


Explain the difference between association, aggregation and inheritance relationships.

560


How many types of design patterns are there?

533


What are the new features in java 8? Explain

562


Why are the methods of the math class static?

591


When can we say that threads are not lightweight process in java?

596


What is a method declaration?

518


Can we call a non-static method from inside a static method?

564


Does treeset use compareto?

543