- 1

Java args what is this??why to use that??why use void everytime...why cant i use int or others!

public class play { public static int main(String[]args) { System.out.println ("Hi boss"); int j = 15; String rayhan; args[1]= (int) j; System.out.println(args[1]); } }

16th Feb 2019, 12:41 PM
Ferdous Rayhan
Ferdous Rayhan - avatar
2 Answers
16th Feb 2019, 1:28 PM
Muhd Khairul Amirin
Muhd Khairul Amirin - avatar
+ 1
Void is return type... Means what type of data you want to return.... if you use void then nothing will be returned.... And Not void every time you can use other return type also...
28th Feb 2019, 1:16 PM
Md Shahriyar Alam
Md Shahriyar Alam - avatar