Explain function arguments with the help of an example, JAVA Programming

Assignment Help:

Explain function arguments with the help of an example?

Arguments on a function are comma separated list of data enclosed within braces. It describes interface among the web page and the function. Arguments values are passed to the function through value or by reference. This data that have been passed to function is then used in which function for some specific reasons. Example Function sold (a,b)//a function 2 arguments a and b ........

C=a+b;// here 2 arguments that have been passed to functions are being used return c;}

sum1=add (2,4);// the function is being called with 2 integer arguments 2 and 4 sum2=add(9,6);// the function is being called with 2 integer arguments 9 and 6
document. Write(sum1);
document. Write(sum2);


Related Discussions:- Explain function arguments with the help of an example

Why processing an unknown number of parameters, Why Processing An Unknown N...

Why Processing An Unknown Number Of Parameters ? Most of the time you have a fairly high-quality idea of what parameters will and won't be passed to your applet. Therefore som

Find representative skyline points in to 2 dimensional data, Find represent...

Find representative skyline points in to two dimensional data Project Description: Run skyline algorithm run representative skyline algorithm up to skyline algorithm (Affi

Difference between object declaration and object creation, Question: (a...

Question: (a) (i) Describe the purpose of comments when writing programs in Java. (ii) Name the types of comments available and illustrate with simple examples. (b) (i)

Describe invoking methods in java, Describe Invoking Methods in java? c...

Describe Invoking Methods in java? class Car { String licensePlate = ""; // e.g. "New York 543 A23" double speed = 0.0; // in kilometers per hour double maxS

Board Colourling, write a program to find the minimum no of colors to fill ...

write a program to find the minimum no of colors to fill a board where some of the elements of different color are already placed.

What is arpanet and who developed it, What is ARPANET and who developed it?...

What is ARPANET and who developed it? ARPANET stands for Advanced Research Projects. The initial reasons were to communicate along with and share computer resources between mainl

Jumps in loops, explain jumps in loops and explain labelled loops

explain jumps in loops and explain labelled loops

Difference between bean factory and application context, On the surface, an...

On the surface, an application context is similar as a bean factory. But application context offers much more.. ? Application contexts give a means for resolving text messages,

Determine the java compiler structure, Determine the Java Compiler Structur...

Determine the Java Compiler Structure Source code for every class is in a .java file. Compile every class to produce -.class? file. Sometimes, multiple .class files are pack

Define the difference between stringbuffer and string class, Define the dif...

Define the difference between StringBuffer and String class ?

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd