https://codegym.cc/quests/lectures/questsyntax.level02.lecture04
please can you explain this link>>
and
confuse
Under discussion
Comments (19)
- Popular
- New
- Old
You must be signed in to leave a comment
naif
27 November 2021, 17:46
very bad support from all
fake
0
Lisa
27 November 2021, 19:59
Sweet, the little one must stomp 😜🤪
Very bad manners btw. If you expect an answer, then you should ask a clear question and not something like: explain to me Java. Add all relevant stuff to your post. Not everyone can't open your links (at least I can't).
Nighty night 😘
0
naif
27 November 2021, 20:05
none of your business
go there
0
Lisa
27 November 2021, 20:12
You asked, boy
0
naif
27 November 2021, 20:14
than explain to this page ...
Do not elevate yourself above people, acquire the character of humility
0
naif
27 November 2021, 20:14
https://codegym.cc/quests/lectures/questsyntax.level02.lecture04
0
Lisa
27 November 2021, 20:25
I already told you above you need to post all relevant info here. I can not open this URL.
0
naif
27 November 2021, 20:26
https://codegym.cc/quests/lectures/questsyntax.level02.lecture04
thr URL refer to Visibility of variables
0
naif
27 November 2021, 20:27
i am new cannot t understand anything
0
Lisa
27 November 2021, 20:30
So you need to ask specific questions.
0
naif
27 November 2021, 20:31
yes all the example cant understand
0
naif
27 November 2021, 20:32
you are level 31
0
naif
26 November 2021, 19:19
https://codegym.cc/quests/lectures/questsyntax.level04.lecture01
0
naif
26 November 2021, 19:15
what is the different between broken line and solid line
with different color which to refer to what
me confuse
0
naif
26 November 2021, 19:13
the example is complex
0
Gellert Varga
27 November 2021, 23:51
Don't bother you too much.
I think this topic is too complicated at level 3.
CodeGym sometimes has such stupid ideas that they throw in something that will make you go up against the wall.
Fortunately, this topic will be repeated again, later, when you understand a lot more.
But I can open your links, so I can answer specific questions about that lessons, if you want.
0
Thomas
29 November 2021, 09:46
I can visit the links, too. So fire away.
0
naif
29 November 2021, 20:17
great i try a lot
0
Gellert Varga
29 November 2021, 21:55
https://codegym.cc/quests/lectures/questsyntax.level04.lecture01
1. A variable declared in a method exists (is visible) from the start of its declaration to the end of the method.
Its name is local variable.
2. A variable declared in a code block exists until the end of the code block.
So, don't try to use the variable outside a method, if you declared it inside it.
3. A method's parameters exist until the method returns.
In other word: until the method finished own work.
4. Variables in an object exist during the entire lifespan of the object that contains them. Their visibility is also governed by special access modifiers (e.g. public, protected, private.)
5. Static (class) variables exist the whole time the program is running. Their visibility is also defined by access modifiers.
Static variables are also known as global variables.
"public, private, protected": about these you'll get more lectures in this course later.
On the picture in the lesson above, with blue color:
(String[] args)
Maybe it's a shame, but I only understood what it meant at about level 17 :-D
At that level there was a task where you had to use it. Nobody taught me what it was until then.
The main() method can take an array of strings called 'args' when the program starts.
You will learn about arrays later.
This 'args' variable is a parameter to the main method.
The data (variable) that the method receives when it is called is called a method parameter (the data is sended to it by the caller).
This 'args' can be used / exists / is visible until the end of the main() method.
Any further specific question you have: reply button, under my comment.
0