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


Please Help Members By Posting Answers For Below Questions

Explain, java is compatible with all servers but not all browsers?

697


Explain the differences between static and dynamic variables?

690


What are invisible components?.

1767


Is class is a data type?

680


What is immutability in java?

695






What does serializing data mean?

607


What is void class in java?

618


Define an abstract class with reference to java.

655


What is multi level inheritance in java?

636


Why we use methods in java?

631


What are recursive functions? Give some examples?

703


What super () does in java?

568


What are different types of encoding?

704


How can you write a loop indefinitely in java programming?

644


What is array size in java?

602