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

Can we write method inside a method in java?

530


What is static import?

604


Difference between final and effectively final ? Why is effectively final even required ?

563


What is a wrapper method?

539


What is double checked locking in singleton?

617






What is nextline method in java?

568


What are the main features of java?

534


What is public static void main?

573


What's the purpose of using break in each case of switch statement?

514


Can a static method be overridden in java?

559


What is difference between equal and == in java?

528


How do you check if a string contains only numeric digits?

620


What methods are used to get and set the text label displayed by a button object?

558


What is an example of a conditional statement?

571


What is a ?

758