how cani read a command line argument?(usingfile object).
Answers were Sorted based on User's Feedback
Answer / subrahmanyam
You can get Command line arguments as Strings only. You
have to take file name as String and create a FILE object
with filename you read .
| Is This Answer Correct ? | 0 Yes | 0 No |
What are the types of exceptions?
What is the use of singleton?
where final and static variable stored?
What is the preferred size of a component?
What is final keyword in java?
What is 'finally' method in Exceptions?
What is aggregation and composition ?
What error occurs if a try-catch-finally statement sequence does not have a catch clause?
What are implicit objects in java?
Is delete, next, main, exit or null keyword in java?
What is an infinite loop in java? Explain with an example.
How do you define a singleton class?