how to accept integer array in java

Answers were Sorted based on User's Feedback



how to accept integer array in java..

Answer / saluru srinivasa rao

int []anarray=new int[10];
for(int i=0;i<=anarray.length;i++)
{
anarray[i]=i;
}

Is This Answer Correct ?    4 Yes 0 No

how to accept integer array in java..

Answer / pavan kumar

int [] arrayreferencename=new int[size]

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Core Java Interview Questions

Can I uninstall java?

0 Answers  


how many ways we can serialize the java object?

2 Answers   Satyam,


Which command from the jdk compiles a java program?

0 Answers  


what is bmg file and how to create that files?what will it contailn?

0 Answers   HCL, Probe Services,


What are the benefits of operations?

0 Answers  






What is the arguement of main method?

1 Answers  


what do you understand by the term string with respect to java?

0 Answers  


Can we override private methods?

0 Answers  


What are parameters in a method?

0 Answers  


Write a java program to generate fibonacci series ?

0 Answers   Cyient,


In the below example, how many string objects are created?

0 Answers  


Java is pass by value or pass by reference? Explain

0 Answers  


Categories