answersLogoWhite

0


Best Answer

Yes you can store non primitive data type variables in an array.

String is a non primitive data type. You can declare a string array as:

String a[]=new String[10];

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Can you store non primitive data type in the array list?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Can Array List in java hold different data types?

No, we cant hold different data types in an Array. But using Array List we can hold any data type as a Object. But you need iterate that values as a Object and again you need to convert those values into the different data types accordingly.


What is an ordered list of data structure using c plus plus?

An ordered list of data in any programming language is simply a sorted array or list. In C++ this can either mean a sorted array, vector, list or forward list.


How would you use the word array in a sentence?

An array is a list of data items or variables of the same type, like a list of numbers or a list of dates or a list of names.


An array is a list of data items that all have the same type and the same name?

An array element has the same type as the array name.


What is different between primitive date type and non primitive data type in c plus plus programming language?

A primitive data type is built into the language - int, char, long, etc. A non-primitive data type is am abstract data type that is built out of primitive data types - linked list, queue, stack, etc.


What is a stock sorting algorithm?

Stock sorting algorithm is a algorithm which is used to sort any kind of stock i.e. any data type containing the primitive values like array ,link list ,stack etc.


What is stock sorting algorithm?

Stock sorting algorithm is a algorithm which is used to sort any kind of stock i.e. any data type containing the primitive values like array ,link list ,stack etc.


What is one dimensional data storage?

One dimensional data storage is when you store a series of data in a linear way. An example of this would be an array, which stores data in a series, and access that data by indexing it. A linked list is another example of a data structure that behaves one dimensionaly.


What is the difference between array linklist?

Linked list consists of data nodes each pointing to next in the list .An array consist of contiguous chunk memory of predetermined size


A travel agent wants a program to store an alphabetical list of winter holiday destinations State the most efficient way to store lists using a programming language?

The most efficient way to store a list is with an array.


Can MS Access collect and store any information to database?

Databases do not store information. Databases store data, from which you get information. A list of names is data. A count of how many names there are is information. A list of dates of birth is data. Which people were born in April is information. A database can store data that you want, which will be based on your design. So it is possible to design it to store all kinds of data. That is down to your ingenuity and what you need.Databases do not store information. Databases store data, from which you get information. A list of names is data. A count of how many names there are is information. A list of dates of birth is data. Which people were born in April is information. A database can store data that you want, which will be based on your design. So it is possible to design it to store all kinds of data. That is down to your ingenuity and what you need.Databases do not store information. Databases store data, from which you get information. A list of names is data. A count of how many names there are is information. A list of dates of birth is data. Which people were born in April is information. A database can store data that you want, which will be based on your design. So it is possible to design it to store all kinds of data. That is down to your ingenuity and what you need.Databases do not store information. Databases store data, from which you get information. A list of names is data. A count of how many names there are is information. A list of dates of birth is data. Which people were born in April is information. A database can store data that you want, which will be based on your design. So it is possible to design it to store all kinds of data. That is down to your ingenuity and what you need.Databases do not store information. Databases store data, from which you get information. A list of names is data. A count of how many names there are is information. A list of dates of birth is data. Which people were born in April is information. A database can store data that you want, which will be based on your design. So it is possible to design it to store all kinds of data. That is down to your ingenuity and what you need.Databases do not store information. Databases store data, from which you get information. A list of names is data. A count of how many names there are is information. A list of dates of birth is data. Which people were born in April is information. A database can store data that you want, which will be based on your design. So it is possible to design it to store all kinds of data. That is down to your ingenuity and what you need.Databases do not store information. Databases store data, from which you get information. A list of names is data. A count of how many names there are is information. A list of dates of birth is data. Which people were born in April is information. A database can store data that you want, which will be based on your design. So it is possible to design it to store all kinds of data. That is down to your ingenuity and what you need.Databases do not store information. Databases store data, from which you get information. A list of names is data. A count of how many names there are is information. A list of dates of birth is data. Which people were born in April is information. A database can store data that you want, which will be based on your design. So it is possible to design it to store all kinds of data. That is down to your ingenuity and what you need.Databases do not store information. Databases store data, from which you get information. A list of names is data. A count of how many names there are is information. A list of dates of birth is data. Which people were born in April is information. A database can store data that you want, which will be based on your design. So it is possible to design it to store all kinds of data. That is down to your ingenuity and what you need.Databases do not store information. Databases store data, from which you get information. A list of names is data. A count of how many names there are is information. A list of dates of birth is data. Which people were born in April is information. A database can store data that you want, which will be based on your design. So it is possible to design it to store all kinds of data. That is down to your ingenuity and what you need.Databases do not store information. Databases store data, from which you get information. A list of names is data. A count of how many names there are is information. A list of dates of birth is data. Which people were born in April is information. A database can store data that you want, which will be based on your design. So it is possible to design it to store all kinds of data. That is down to your ingenuity and what you need.


Is it true or false that a dynamically linked list can be accessed both sequentially and randomly?

No. Linked lists require traversal, and are therefore accessed sequentially. For random access you need an array. An array of pointers to the data in your list would do, but you will incur an overhead in creating the array on top of the list.