how to accept integer array in java

Answer Posted / pavan kumar

int [] arrayreferencename=new int[size]

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to split a string in java?

631


Why packages are used?

548


Can we write method inside a method in java?

529


Why are getters and setters used?

573


Can you give few examples of final classes defined in java api?

567






How do you use wildcards?

538


What are the practical benefits, if any, of importing a specific class rather than an entire package (e.g. Import java.net.* Versus import java.net.socket)?

592


Explain the selection sort algorithm?

647


Is cout buffered?

691


How much ram can a 64 bit processor theoretically?

468


Explain the difference between string, stringbuffer and stringbuilder in java?

565


What are the restriction imposed on a static method or a static block of code?

600


Can we overload destructor in java?

544


Is stringwriter thread safe?

557


In java how do we copy objects?

555