1-Java Lab
1-Java Lab
DIGITAL ASSIGNMENT-1
19MIS0123
SUNIL R
Code:
OUTPUT:
2. Use doc comments to prepare automatically generated documentation for a user defined
class which has two methods in it. Also include the following tags.
@author
@version
@param
@return
CODE:
import java.io.*;
/**
* @author sunil R
* @version 1.0
* @since 2021-08-12
*/
/**
*/
/**
* @return Nothing.
* @see IOException
*/
public static void main(String args[]) throws IOException {
OUTPUT:
2. Describe what happens if you try to execute UseArgument with each of the following
command lines:
CODE:
System.out.print("Hi, ");
System.out.print(args[0]);
}
a.java UseArgument java:
OUTPUT:
OUTPUT:
OUTPUT:
OUTPUT:
OUTPUT: