Answer Posted / ami singh
ya all people all right
class Amit
{
public static void main(String [] args)
{
for(int i =0;i<args.length;i++)
{
System.ou.println("value" + args[i]);
}
}
javac Amit.java
java Amit asad fgh jkl // value pass through command
value :asad fgh jkl
ami singh amitsing2008@gmail.com
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are the methods available in a class?
Can java list contain duplicates?
Explain the scope of a variable.
What does provide mean construction?
What is variable length arguments in java?
Describe different states of a thread.
A non-static inner class may have object instances that are associated with instances of the class’s outer class. A static inner class does not have any object instances.
Write an algorithm program in java for the following question.. 1) S is a set of integers.X is an integer obtained by sum of two digits in S. Write logic for whether or not the X is from the S. The time of algorithm should not exceed o(n logn).
Why java does not support pointers?
How many types of flags are there?
Can static method access instance variables ?
What is the memory leak in java?
What is the difference between C++ and Java and your preferences?
How do you define a singleton class?
What is the primitive type short?