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

What is the syntax and characteristics of a lambda expression?

0 Answers  


Distinguish method overloading and method overriding

4 Answers   Tech Mahindra,


Explain how to convert any java object into byte array.

0 Answers  


What is static synchronization?

0 Answers  


Does unicode support all languages?

0 Answers  






what are class,constructor and primitive data types?

2 Answers   IBM,


If we don’t want some of the fields not to serialize how to do that?

0 Answers  


Can we declare a constructor as final?

0 Answers  


What is the generic function?

0 Answers  


How do you identify if jvm is 32-bit or 64-bit from java program?

0 Answers  


List implementations of list interface?

0 Answers  


What is the use of string and stringbuffer?

0 Answers  


Categories