answersLogoWhite

0

What is the purpose of call by value in java?

Updated: 8/20/2019
User Avatar

Wiki User

11y ago

Best Answer

Simple types are passed by value in Java.

For example:

void meth(int a) {

// code

}

meth(34); // 34 is passed by value

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the purpose of call by value in java?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Does java support call by reference?

No , Java does not support call by reference.


What is the purpose of NoMatchException handling method in java?

java exception


What do you call java and javascript?

Well you get java as java and javascript as iava.


Why constructor in Java doesn't have any return type?

The constructor of a Java class is not an ordinary method. Its purpose is not to return any value. The purpose of the constructor is to instantiate the class which it does. Since, the purpose of a constructor is only to instantiate and initialize its class and not anything else, it does not have a return type. All it does is creates an object of that class.


What is the purpose of vector?

The purpose of vector Java is to make more Java possibilities for mobile and uniformed devices. The makers of Java said that they wanted to "revolutionize" the way that Java works and helps around the globe.


How do you call main class with in main class in java?

We can't call a class. We always call a method in java.


What is the purpose of Java Properties?

The Java Properties stores settings and configuration data such as user preferences or connection settings. It stores each parameter as a pair of strings, one being the name of the parameter and the other the value.


What is the purpose of Java Mobile?

Java is the leading mobile phone developers and carriers. The purpose of Java's Mobile Media API is to play record sounds and videos and to also capture still images.


What is java's purpose on my PC?

Programs that are specifically designed with Java require a Java runtime to work on a computer. (In the case of Java, the runtime is called "Java Virtual Machine".) If you have any such program, you need to have Java.


Program for finding a minimum value in javaprogram for finding a minimum value in java?

program for finding a minimum value in javaprogram for finding a minimum value in java


What is the purpose of claiming exceptions?

it informs compiler about its possible exceptions. For example,The purpose of Java exception is to tell the Java runtime system what can go wrong


What is purpose of JVM?

JVM stands for Java Virtual Machine The JVM is the system in which our Java programs are executed.