Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
Which of the following syntax for defining an array is correct?
Home
JAVA
Which of the following syntax for defining an array is correct?
0
votes
asked
Oct 24, 2020
in
JAVA
by
sharadyadav1986
Which of the following syntax for defining an array is correct?
#syntax-for-defining
#array-is-correct
Java-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Oct 24, 2020
by
rahuljain1
Which of the following syntax for defining an array is correct?
– Int []=new int[];
– int a[]=new int[];
– int a[] =new int [32];
int a[]=new int[32] is the correct method.
Related questions
+2
votes
Q: Select the best from following can be considered as the correct syntax for declaring an array of pointers of integers that has a size of 10 in C++?
asked
Jan 21, 2021
in
C Plus Plus
by
SakshiSharma
#array
array-size
0
votes
Q: What is correct syntax for main method of a java class?
asked
May 18, 2020
in
JAVA
by
AdilsonLima
#java
Java-questions-answers
0
votes
Q: Select the correct syntax for creating MockMvc instance for EmployeeController,java.
asked
Feb 12, 2020
in
JAVA
by
rahuljain1
Java-questions-answers
0
votes
Q: Which statements is/are correct about JSON Syntax?
asked
Jan 23, 2020
in
JAVA
by
rahuljain1
#json-syntax
Java-questions-answers
0
votes
Q: What is the correct way to write a JSON array?
asked
Jan 23, 2020
in
JAVA
by
rahuljain1
#json-array
#json-variable
Java-questions-answers
0
votes
Q: Contiguous memory locations are usually used for storing actual values in an array but not in ArrayList. Explain.
asked
Dec 16, 2020
in
JAVA
by
SakshiSharma
#contiguous-memory
#arraylist
Java-questions-answers
0
votes
Q: What are the advantages of defining packages in Java?
asked
May 2, 2021
in
JAVA
by
sharadyadav1986
#java
packages
package
Java-questions-answers
0
votes
Q: Which of the following is a valid syntax to synchronize the HashMap?
asked
Apr 9, 2021
in
JAVA
by
Robindeniel
java
java-questions-and-answers
java-mcq
core-java-mcq
java-multiple-choice-questions
java-questions-2021
java-interview-questions
java-advanced-questions
Java-questions-answers
+1
vote
Q: Which of the following is the correct way of defining a variable in PHP?
asked
May 11, 2022
in
PHP
by
sharadyadav1986
php-variable
0
votes
Q: Can you convert an array to Stream and how?
asked
Apr 15, 2021
in
JAVA
by
SakshiSharma
java8
java-stream
Java-questions-answers
...