Java, Android software development [Part-26] :: What Is Function

in #programming7 years ago

![]
In short, the function is the sum of the statements or blocks of the statements. Which can be used once and for a brief call and repeatedly used in different places of the program. This reduces the amount of coding in the program. Besides, a programmer can only use the built-in functions of different programs directly in Calcutta, which makes programming much easier. We can easily become a skilled programmer soon after knowing the effectiveness and usage of these built-in functions. In addition, the special features of an expert programmers are expressed in the program to create the required user defining function and its proper application.

Make the function

To create the function, the first function is used in the keyword. Then the name of the function is written (after which the function is called in the call) then the fast bracket is to be given. And if there are one or more arguments or parameters in the function it is to be mentioned in the fast bracket. Then the second bracket is written in the main part of the function (where the statements are required to perform the task). That is, the syntax of any function is being done

function FunctionName (Argument1, Argument2)
{
Statement1
Statement2
............ ..
}

The function is to create first and then call. The functions in theTyJavascript are usually created within the section of the web page, or are created in an external javascript file

Practicing Project

Open a Notepad and enter the code at the top and save it from the file menu and save as file name: index.html, Save as type: All files, and save the index.html file with Mozilla Firefox, as shown below.

()

Sort:  

Good post for learning java @amirul. Keep post and try to write more long and more sample.

@darklog
thanks you..please support me always

This post recieved an upvote from minnowpond. If you would like to recieve upvotes from minnowpond on all your posts, simply FOLLOW @minnowpond