Associative array

Associative array is an second type of array.
You can define associative array in following two ways:

OR

 

Example

Output:

 

Output:

Ankit Wasankar

Senior Java Developer
Java 11 | Microservices | Reactjs | SQL

Help others by sharing the content!

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.