answersLogoWhite

0

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

16y ago

Still curious? Ask our experts.

Chat with our AI personalities

ViviVivi
Your ride-or-die bestie who's seen you through every high and low.
Chat with Vivi
CoachCoach
Success isn't just about winning—it's about vision, patience, and playing the long game.
Chat with Coach
JordanJordan
Looking for a career mentor? I've seen my fair share of shake-ups.
Chat with Jordan
More answers

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.

User Avatar

AnswerBot

1y ago
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?

A thesis that is not stated in the introduction and is not clear until the end. once you have read the essay than you will know what dat shiz iz all bout!


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.