answersLogoWhite

0


Best Answer

Two implicit arguments are passed into any Java method which is not declared "static". They are referenced using the keywords "this" and "super."

"this" refers to the object instance on which the method was called. For example, in the line of code:

int len = "abcde".length();

Even though String.length() takes no arguments, a reference to a String instance containing "abcde" is passed to length() through the keyword "this." A possible implementation of String.length() could then be:

public int length() {

return this.chars.length;

}

However, in most cases, it is not necessary to explicitly use "this."

The "super" keyword points to the same object as "this" but is instead used to call a member of the object's superclass rather than of the object's concrete class.

User Avatar

Wiki User

15y ago
This answer is:
User Avatar
More answers
User Avatar

AnswerBot

7mo ago

In Java, an implicit argument refers to an argument that is not explicitly provided by the programmer when calling a method. These arguments are typically provided by the language or the system environment automatically. Examples include the "this" reference in non-static methods and the default constructor arguments.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is an implicit argument in java?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Educational Theory

What is an implicit thesis?

An implicit thesis is a thesis that is implied rather than expressly stated in the text. It requires readers to infer the main idea or argument based on the evidence provided by the author.


How do you write an implicit thesis?

To write an implicit thesis, you need to convey your main argument indirectly through the use of subtle clues or hints throughout your writing. This involves crafting your content in a way that allows readers to infer the main point without explicitly stating it. Utilize strategic language choices, organization, and evidence to guide readers to the intended thesis without explicitly spelling it out.


What is explicit and implicit meanings in a movie?

Explicit meanings in a movie are directly stated or shown, while implicit meanings are implied or suggested. Explicit meanings are usually easier to identify and understand, while implicit meanings may require deeper analysis and interpretation to uncover the underlying themes or messages in a film.


What is implicit leadership theory?

Implicit leadership theory is the idea that people have preconceived notions about what traits and behaviors are associated with effective leaders. These beliefs shape how individuals perceive and evaluate leaders, influencing how they respond to them.


What is implicit theme?

An implicit theme is a theme in a literary work that is not directly stated but is revealed gradually through the characters, plot, and dialogue. It requires readers to infer and interpret the underlying messages and meanings of the work.

Related questions

What implicit modifiers interface methods have in java?

public


What is an implicit argument?

There may be a meaning of this expression that is specialized to some area of literature, but used more generally, an implicit argument would be an argument or position or opinion that is put forth without stating it directly. For example, a disturbing story about a family devastated by a war might constitute an implicit argument that war is bad.


What is implict?

Something which is implied. "It is implicit in your argument that war is justified".


What happens when you perform arithmetic operations mixing different types of variables in java programming?

Java performs an implicit conversion to a unifying type.


Why args0 is used in IntegerparseInt in Java?

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


What does the warning Illegal Argument Exception mean in Java language?

The warning Illegal Argument Exception in Java means that one has attempted to pass a wrong type of argument for a function. For example, we have a function that calculates a sum of two numbers and feed it a text string, which results in Illegal Argument Exception.


What is the difference between implicit and explicit Java programming?

Explicit means done by the programmer. Implicit means done by the JVM or the tool , not the Programmer. For Example: Java will provide us default constructor implicitly.Even if the programmer didn't write code for constructor, he can call default constructor. Explicit is opposite to this , ie. programmer has to write .


Is exception handling implicit or explicit?

In Java, Exception Handling is Explicit. The Programmer has to write code that will ensure that the exceptions are caught and appropriately handled


Is constructor created automatically in java?

There is a default constriuctor that takes no argument for every class that extends Object.


What happen when a c program passes an array as a function argument?

When an array name is passed as a function argument, the address of the first element is passed to the function. In a way, this is implicit call by reference. The receiving function can treat that address as a pointer, or as an array name, and it can manipulate the actual calling argument if desired.


How can I tell which version of Java I have?

From the command-line if you call java with the -version argument then it will display the version number.> java -versionjava version "1.8.0_111"Java(TM) SE Runtime Environment (build 1.8.0_111-b14)Likewise, if you list what programs/applications you have installed then the list should include the version number.


What happens when no constructor function is declared in a class - in Java?

When any constructor is deffined in your class, the java compiler create a default no argument constructor for you. This constructor only have an invocation to the super class constructor (" super( ) ").