Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Java
  3. Question
Java

How do I declare and initialize an array in Java?

Asked by Edyth Ferrill May 21, 2025 2.6K views 1 answer
Share

About this question

How do you declare and initialize an array in Java? What are the different ways to create arrays with or without predefined values in your Java programs?

Your answer

1 Answer

More Java discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Java Blogs

Guides, tips and career advice on Java from JanBask experts.