Multiple functions (methods) connected to call

Asked 2 years ago, Updated 2 years ago, 20 views

I don't know if you know the difference between the Static method and the Instance method...

Object.Method.Method... Class, method, method... How does using multiple methods work?

I don't understand the fundamental reason.

Class.Method/ See as a bundle (Class.Method).Is this how you think about the method?

Is the second and later method a class or object method? Or is it the method of the first method?

It's hard to be a beginner. Please let me know ㅜ<

java

2022-09-21 21:19

1 Answers

The method call of the method's return value of the method. Maybe Java also includes stream or lambda, so I think I'm asking questions after looking at functional codes.

It's not hard. The method call of the method's call result (object).

For example,

Arrays.asList(1, 2, 3).get(0)

If you have a code such as

The list (ArrayList) is returned by asList and the get method of the list is called.


2022-09-21 21:19

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.