Interview Questions  

Go Back   Interview Questions > Interview Questions & Answers > Information Technology > Java > Core Java

Core Java Core Java Interview Questions, Learn by sharing Core Java Interview Questions asked in various companies, Get Career advices, Interview Procedures from Core Java experts, Post asked Core Java Interview Questions and Answers.

   

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-21-2008, 05:57 PM
Dev Dev is offline
Administrator
 
Join Date: Feb 2008
Posts: 1,989
Default What is the difference between Java

What is the difference between Java Command Line and C command Line?
Reply With Quote
  #2 (permalink)  
Old 07-25-2008, 06:27 AM
Member
 
Join Date: Jul 2008
Location: West Bengal,India
Posts: 48
Default

1) IN c and c++ we passes two parameter argc and argv. argc is the the no of argument passes and argv is a pointer to an array of charecter which contain the actual arguments.
In JAVA we passes only one arguments, args.args is the array of String which contain the actual arguments.
2) In c and c++ the first argument is the name used to invoke the program.
In java you already know the name of the program because it is same as the name of the class.
__________________
Asit Kumar Purohit.
SRIC,IIT Kharagpur.
West Bengal,India
Mail me
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On