is this possible to create an array of 0 length?
if so how? if not so why?
coz we have an array in main() likw this
"static void main(String [] s) then what it signifies?
Answer Posted / priyanjan
Yes,it is possible to create the array of length 0. by
defining as:
int[] arr = {};
String[] s signifies the command line argument
| Is This Answer Correct ? | 29 Yes | 0 No |
Post New Answer View All Answers
How many types of assembly languages are there?
In the below example, how many string objects are created?
List down the methods and interfaces of collection class in java.
what is predefined function in java?
What is difference between pointer and reference?
How to sort an array in java without using sort method?
Is java util list serializable?
Assume a thread has lock on it, calling sleep() method on that thread will release the lock?
How does varargs work in java?
What is an enumeration?
When should we create our own custom exception classes?
How do you delete a list in java?
What is the use of object and class classes?
What's the purpose of static methods and static variables?
What are different types of control structures?