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?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / ravikiran
it infers that the main method is capable of holding string
array as an argument
| Is This Answer Correct ? | 7 Yes | 0 No |
Answer / sushila
yes we can create array with 0 length.
public class A
{
static int b[];
public static void main(String args[])
{
System.out.println("-----------------");
System.out.println(b);
System.out.println("-----------------");
}
}
| Is This Answer Correct ? | 4 Yes | 0 No |
whays is mean by inner class?
how to accept integer array in java
Can you run the product development on all operating systems ?
What is a package in java? List down various advantages of packages.
what is web.xml?and its use?
class A { public void disp(int a,int b) { System.out.println("hai"); } } class B { public void disp(int a,int b,int c) { System.out.println("hai"); } } above program is overloading or overriding?
Can a lock be acquired on a class in java programming?
Can we instantiate Interfaces?
What is a java object and java application?
Explain spliterator in java8?
What is application system?
Why method overloading and method overriding required in java?