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 |
Diff between C++ and java?
we know that every java prog must follows OOPS Principles. Anybody can answer, HOW THE FOLLOWING PROGRAM FOLLOWS OOPS CONCEPTS i.e, Inheritance,Polymarphism,Encapsulation? class a{ public static void main(String args[]){ System.out.println("Hello World"); } }
If your team member writes code with lots of static variables and static methods, will it cause any side effects?
Define package in Java.
Which one will take more memory: an int or integer?
What are the advantages of java over cpp?
What is the difference(or similarity if there are some) between object and a variable?
In multi-threading how can we ensure that a resource isn't used by multiple threads simultaneously?
What are the different data types in java?
What happens to a static var that is defined within a method of a class?
What is the immediate superclass of the Dialog class?
What is the difference between hashset and treeset in java?