In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article shows you how to understand the object-oriented and java mechanisms in AJPFX. The content is concise and easy to understand, which will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.
1. What is the relationship between the scope of variables and the life cycle?
Is it necessary for 2.java not to declare variables except in class bodies and method bodies (including parameters)? For example, are there any exceptions in high-level applications?
The code in the 3.java source file must be organized as follows:
Class ClassName1 {/ / Class definition
/ / member variable definition
/ / member method definition
}
Class ClassName2 {/ / Class definition
/ / member variable definition
/ / member method definition
}
/ /.
Does it have to be the above structure? For example, must there be no other code between two class definitions (except comments)? Is it impossible to have anything in the class body other than the definition of member variables and member methods? Can the definitions of member variables and member methods be out of order?
How many parts does 4.JVM divide the memory into? It's different in different materials.
1. What is the relationship between the scope of variables and the life cycle?
It can be understood as basically consistent, or the life cycle determines the scope.
Is it necessary for 2.java not to declare variables except in class bodies and method bodies (including parameters)? For example, are there any exceptions in high-level applications?
Where else do you want to declare variables? Java does not support so-called "global variables" that are beyond the three boundaries and not in the five elements.
Does the organization of the code in the 3.java source file have to be this structure?
After all, Java preaches object-oriented, so what's outside the class? Does it make sense? What is outside the universe? )
There is nothing but the definition of member variables and member methods.
The order of definitions can be disrupted, but after all, you have to take care of the feelings of the reader.
How many parts does 4.JVM divide the memory into?
It's up to the JVM vendor to decide, and even one vendor may have different versions of JVM. Don't get me wrong: JVM is not just for Sun.
The above content is how to understand the object-oriented and java mechanism in AJPFX. Have you learned the knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.