GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  J2EE  >  Core Java
Go To First  |  Previous Question  |  Next Question 
 Core Java  |  Question 142 of 502    Print  
what's the difference b/w Java command line arg.s & C command line arg.s?

  
Total Answers and Comments: 3 Last Update: November 13, 2005     Asked by: sushma 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
October 26, 2005 05:44:14   #1  
Gopi        

RE: what's the difference b/w Java command line arg.s ...

C Command line arg start from filename whose arg[0]. but in file name is not a arg.


 
Is this answer useful? Yes | No
November 05, 2005 10:42:47   #2  
sushi Member Since: November 2005   Contribution: 3    

RE: what's the difference b/w Java command line arg.s ...
well command line args in case of java are stringsi.e they are of type strings this is not the case in c it is not of type string.
 
Is this answer useful? Yes | No
November 11, 2005 16:00:22   #3  
Paramesh.A        

RE: what's the difference b/w Java command line arg.s ...

THERE IS ONE MAJOR DIFFERENCE IN COMMANDLINE ARGUMENTS OF JAVA AND C.LET US ASSUME THERE IS AN EXECUTBLE FILE NAMED COPY.EXE WHICH SOURCE CODE IS IN C AND TAKES 2 COMMANDLINE ARGUMENTS THEN WE WILL RUN IT AS SHOWN BELOW C:>COPY SOURCE DEST ->HERE COPY IS TAKEN AS FIRST ARGMENT SOURCE DEST AS SECOND AND THIRD ARGUMENTS RESPECTIVELY IN JAVA IT WILL BE TAKEN FROM SOURCE IF COPY IS CLASS FILE


 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape