how cani read a command line argument?(usingfile object).

Answers were Sorted based on User's Feedback



how cani read a command line argument?(usingfile object)...

Answer / narasimha

i getting you exactly. could you beclear with your question?

Is This Answer Correct ?    0 Yes 0 No

how cani read a command line argument?(usingfile object)...

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

how cani read a command line argument?(usingfile object)...

Answer / ravikiran

new InputStreamReader(System.in);

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What are the characteristics of Final,Finally and Finalize keywords.

0 Answers   Flextronics,


what are three ways in which a thread can enter the waiting state? Or what are different ways in which a thread can enter the waiting state? : Java thread

0 Answers  


What is byte data type?

0 Answers  


When we r go to abstract class and when we go to Interface? i have confusion this question while in interview plz clarify

3 Answers   HCL, Photon,


How to add and remove nodes in Jtree?

1 Answers  


When should a function throw an exception?

0 Answers   Thomson Reuters, Virtusa,


What are the different types of inheritance in java?

0 Answers  


How do you generate random numbers in java?

0 Answers  


What data structures are used to perform recursion?

0 Answers   Akamai Technologies,


What is the difference between the ">>" and " >>>" operators in java?

0 Answers  


What are the advantages and disadvantages of object cloning?

0 Answers  


What happens when I use / and % with a negative numerator?

0 Answers  


Categories