Loading...

Java Programming For Kids ages 12 – 18 : Simple, Concise & Easy guide to Java Programming Language by BASU S

Java Programming For Kids ages 12 – 18 : Simple, Concise & Easy guide to Java Programming Language by BASU S

Author:BASU, S [BASU, S]
Language: eng
Format: epub
Published: 2021-02-21T16:00:00+00:00


At line 20 and 21, the methods of class Math are accessed and arguments are passed into those methods (In addition method , value 10 is assigned to variable x and other value 10 is assigned to variable y . In subtraction method, the value 10 is assigned to variable x and other value 5 is assigned to variable y) . Then the results of those methods are printed by System.out.println .

What is Argument?

Arguments are data values which are passed to the method parameters .

Now let’s run the above piece of code



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.