answersLogoWhite

0

According to the Java 1.6 API, LinkedList has:

* 39 methods * 2 constructors * 28 methods inherited from superclasses and interfaces

* ** 1 from AbstractSequentialList ** 5 from AbstractList ** 5 from AbstractCollection ** 7 from Object ** 9 from List ** 1 from Deque Which gives it a total of 69 methods.

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

Benefit of inner class in java?

Inner classes are very useful for classes that are written specifically to be used with the encompassing class. A good example of this would be a LinkedListNode class being part of a LinkedList class: public class LinkedList { private LinkedListNode root; private class LinkedListNode { private Object data; private LinkedListNode nextNode; } } No class except your LinkedList class needs to know anything about the LinkedListNode class. So we hide it so no one else needs to worry about what it does.


Which built in class in java contains only final methods?

String class


Does a collection require an array?

No. While there are quite a few which use arrays to store their data (ArrayList, HashMap, Vector, etc.) the typical counter example is a LinkedList. Java's implementation of the LinkedList class uses the standard Entry-Entry.next method of connecting elements in the list. You can even consider a collection as something that is similar to an array but with enhanced features. Collections have a lot of features that arrays do not have.


What do you mean by pointer in linked list?

A pointer is a memory reference to a data structure. So when you allocate memory for your list elements, they will be stored at some address X in your system memory. A pointer is simply a variable that contains that address X. You can access the memory that a pointer points to by dereferrencing it with the * operator.Ex:int main(){LinkedList *x; /* Declare a pointer to a linked list (a type which you would have to define using "struct" or "class") */x = new LinkedList(); /* Here we create (aka "instantiate") a LinkedList object and allocate memory for it, x now contains (points to) the memory address of our LinkedList object */// You can now access any LinkedList members through x, for example x->next might point you to the next element of your LinkedList


When do you use inner classes?

You use inner classes when you know you'll never need to access that class from anywhere else. A common use of this is in a linked list implementation: public class LinkedList { private class LinkedListNode { } } There's no reason for any other class to have access to your node class, so it should be an inner class.


Can instance methods replace class methods in programming?

No. never. An instance method cannot replace a class method because: Instance Methods - are normal methods that are linked to a class object instance Class Methods - are static methods that are not linked to any class object. These methods are not interchangeable and will create too many issues if we try to use one in place of the other.


What difference LinkedList and ArrayList?

public class ArrayList public class LinkedList extends AbstractList extends AbstractSequentialList implements List, RandomAccess, Cloneable, Serializableimplements List, Cloneable, Serializable Resizable-array implementation of the List interface.Linked list implementation of the List interface Implements all optional list operations, and permits all elements, including null. Implements all optional list operations, and permits all elements (including null).


What class is a standard licesnce?

what class is a standard driver licesnce


When are class methods appropriate?

Static methods or class methods are usually used when you want functionality to be executed without creating an instance of the class where that piece of code resides.


Define socket in java?

The Socket class in Java is an endpoint in a standard TCP connection. The Socket class implements methods which take care of all the overhead required with TCP communication.


Is the default access specifier same as protected?

A private member of a class can only be accessed by methods of that class. A protected member of a class can only be accessed by methods of that class and by methods of a derived class of that class.


What is the Function and procedure that works on class data is known as?

These are known as methods. They are basically similar to a standard function except they are invoked in relation to an instance of a class. Their visibility outside of the class is dependent upon the access defined for the method: public, protected or private.