Java args what is this??why to use that??why use void everytime...why cant i use int or others! | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
- 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 Antworten
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