Search This Blog

Wednesday, August 27, 2025

Java Command Line Arguments Type

 Arguments can be passed to a Java application at the command line. These arguments are received in the main method, as main is the entry point to a Java application. Your command line with command line arguments will look like this:

java MyApp 100 200 300 400

What is the data type of every command-line argument received in the main method?

a) int

b) Integer

c) String

d) String array


Created by Nancy K.A.N.

@13:48 27-Aug-2025


No comments:

Post a Comment