Computer Science, asked by shivamkr92, 1 year ago

How to use an array in a java program?

Answers

Answered by Muhammadowais
1

For array object, a proxy class is created whose name can be obtained by getClass().getName() method on the object.

//Java Program to get the class name of array in Java.

class Testarray4{

public static void main(String args[]){

//declaration and initialization of array.

int arr[]={4,4,5};

Similar questions