---
title: "Discussion on \"Java #6 - Array (Part-1)\" | Hashnode"
description: "Discussion on \"Java #6 - Array (Part-1)\". 1. What is an array?\n2. One-dimensional array\n3. Where is the array saved in memory?"
url: "https://hashnode.com/posts/java-6-array-part-1/630093da74730d13020f163e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Java #6 - Array (Part-1)](https://subodhsingh.hashnode.dev/java-6-array-part-1?utm_source=hashnode&utm_medium=feed)

1\. What is an array? 2. One-dimensional array 3. Where is the array saved in memory?

Aug 20, 2022 · 3 min read · subodhsingh.hashnode.dev  
Updated Nov 11, 2022  
Read the article

-   [#java](https://hashnode.com/tag/java)
-   [#array](https://hashnode.com/tag/array)

## Written by

[SUBODH SINGH](https://hashnode.com/@subodhsingh)

@subodhsingh · Pune,India

  
[View profile](https://hashnode.com/@subodhsingh)

Expert in Backend Testing & Automation | Skilled in Framework & Tools Development

• Possess over 14 years of experience in Quality Engineering, specializing in building test frameworks for complex systems including web applications, REST APIs, and core cloud infrastructure on platforms like Akamai's Linode and Azure. • Skilled in the development and improvement of automation frameworks for various Web applications, service APIs displaying proficiency in TestNG, PyTest, Selenium, Rest Assured, Jenkins pipeline.

## Responses 1

Markdown supported · ⌘↵ to post

[Niraj Kumar Gangale](https://hashnode.com/@iamnirajdotcom)

[Sep 28, 2022](https://hashnode.com/posts/java-6-array-part-1/630093da74730d13020f163e/comment/6334235afa20fa4bc8e51799)

I want to ask a question. when does type checking happen in Array at Compile time or the Runtime?

[https://www.baeldung.com/java-generic-array](https://hashnode.com/posts/java-6-array-part-1/Link)

> An important difference between arrays and generics is how they enforce type checking. Specifically, arrays store and check type information at runtime.

Then, this should work fine.

`int[] firstArray = {"hello", "hello2"};`

But, this gives Compile time error. Why?
