Quantcast
answersLogoWhite
notificationBell

Top Answer
User Avatar
Wiki User
Answered 2009-11-13 13:34:46

In Java, a function is called a "method". In Java as well as other languages, a method is a function defined specifically for one class. In Java, this is the only way to define functions, therefore, all functions are methods.

In Java, a function is called a "method". In Java as well as other languages, a method is a function defined specifically for one class. In Java, this is the only way to define functions, therefore, all functions are methods.

In Java, a function is called a "method". In Java as well as other languages, a method is a function defined specifically for one class. In Java, this is the only way to define functions, therefore, all functions are methods.

In Java, a function is called a "method". In Java as well as other languages, a method is a function defined specifically for one class. In Java, this is the only way to define functions, therefore, all functions are methods.

001
๐Ÿ™
0
๐Ÿคจ
0
๐Ÿ˜ฎ
0
๐Ÿ˜‚
0
User Avatar

User Avatar
Wiki User
Answered 2009-11-13 13:34:46

In Java, a function is called a "method". In Java as well as other languages, a method is a function defined specifically for one class. In Java, this is the only way to define functions, therefore, all functions are methods.

001
๐Ÿ™
0
๐Ÿคจ
0
๐Ÿ˜ฎ
0
๐Ÿ˜‚
0
User Avatar

Your Answer

Add your answer:

Earn +1000 pts

How many sides does a hexagon have?

send
imp

Related Questions


Is main a predefined function in java?

No. It is a user defined function which the person who is creating the java class has to code by himself.


What is function in java?

In Java, there are no functions. They call it method and you can define it within a class.



Who invoke main function in java?

The Java Runtime Environment invokes main methods.


What is the difference between C and java?

Java is pure object oriented language, and C++ is not, because you can access the private member of classes in c++ by using the friend function. There is no such function within java.


What is the difference between method and function in java?

A function is a piece of code that can be reused by calling its name while a method is a function that is associated with a class. In Java, functions are usually referred to as static methods.


Definition of member function in OOP?

A member function is simply a function (or method in Java) that is part of a class.


What is a method in Java?

A Java method is a sequence of statements. It is comparable to a function, subroutine, or procedure in other languages.



Why java does not support friend function?

Because Friend function support to access private variable of another class. so security purpose java wont allow.


What is function prototyping in java?

Function prototyping isn't necessary in Java, but what function prototyping means is simply establishing the "signature" of the "function" (functions are referred to as 'methods' in Java) before the method is defined. The signature includes the visibility of the function (public, private, protected), the return type, the method name, the list of arguments the method takes, and any throws, extends, or implements clauses.



Why args0 is used in IntegerparseInt in Java?

It is the default argument name for all Java BIF (Built-In Function)s.


What user defined functions in java?

A function created by the user. In Java, functions are attached to a class, and are called "methods".


What are three difference between the visual basic python and java programming languages?

Programming languages share a lot of the same characteristics. One main difference between Java and Python is the function identifier. In Java it is function and in Python it is def.


User defined function in java?

Any function or method in Java that is coded by the programmer is called a user defined method in Java. The JAVA API (Application Programming Interface) has a set of predefined classes & methods that are for our usage. Whatever methods we create apart from these are termed as user defined methods. In java we not use the term functions. We call them "Methods"


Can you overwrite main function in java?

You can not overwrite a static method in Java,and 'main' is a static method.so,you can't overwrite the 'main'.


Why java is 'simple'?

Java is a simple . Because java has the more library function than c/c++ language.By the help of this library, the developer only focuses on the business logic then java is a simple language.


How are neuron and nerve similar in function?

This is just terminology. Neuron = 'nerve cell'


Does java supports friend function?

I don't believe that Excel has such a function; you'll have to write one yourself.


What is java programming language?

Java is an object oriented programming language that is syntactically similar to C++. It runs on the Java virtual machine, which allows it to function as a cross platform language.


What does common terminology mean in NIMS?

In order to confirm strong and firm communication, common terminology is required in the complete function of NIMS actions. In addition, in order for NIMS to organize resources, the use of common terminology is required.


What is the name of the function which must be defined in a Java program?

The main function. Every program must have a main function and it must be declared static.


System.out.flush function in java?

it will show output fastly. when compare with system.out.print


Still have questions?

Trending Questions
Previously Viewed
Unanswered Questions
Is rice pudding ok for dogs? Asked By Wiki User
Why we require Microsoft paint? Asked By Wiki User
What is saging ternate? Asked By Wiki User