Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to understand Java comments

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article is about how to understand Java notes, the editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.

The Chinese translation of Annotation is the meaning of annotation and annotation. Annotation is a very important knowledge point in Java, but it is often difficult for beginners to understand.

I personally think that one of the main features of poor technical documents is to use professional terms to introduce professional terms.

For example:

Java annotations are used to provide metadata for Java code. As metadata, annotations do not directly affect your code execution, but there are some types of annotations that can actually be used for this purpose. Java annotations are added to Java starting with Java5.

It is true that the explanation of Java notes on most websites is correct, but to be honest, when I first learned it, my mind went blank. What is this and what is it? It's like I'm not listening. Because the concept is too abstract, it is really difficult for beginners to understand, and then as their own development process continues to strengthen practice, they will gradually form a correct understanding of it.

How to make yourself or readers more intuitive to understand the concept of annotations? Are you going to translate the instructions on the official document? I immediately denied the answer.

Later, I thought of something-ink, which can be volatilized and can have different colors, which can be used to explain the notes.

However, after I continued to diverge my thinking, I thought of one thing that could better replace ink, and that was the seal. The seal can be stained with different ink or ink, the text or pattern of the seal can be customized, and it can be poked on the surface of any object you want if you like.

However, after I continue to diverge my thinking, I think of one thing that can better replace the seal, and that is the label. The label is a piece of convenience paper, and the content on the label can be defined freely. Common, such as the price tag on the shelf, the book code label in the library, the name category label of chemical materials in the laboratory, and so on.

And, abstractly speaking, a label is not necessarily a piece of paper, it can be an evaluation of the attributes of people and things. In other words, tags have an explanation of abstract things.

So, based on this, I completed the upgrade of my knowledge and cognition, and I decided to use tags to explain the notes.

Annotations are like labels

Back to the beginning of the blog post, the comments of a news client had the habit of building buildings, so "Jobs redefined the mobile phone, Luo Yonghao redefined the stupid" often appeared in the comment floor very neatly, and the majority of netizens enjoyed this kind of behavior for quite a long time. This is actually tantamount to labeling.

In the eyes of some netizens, Luo Yonghao has become synonymous with silly X.

The majority of netizens have labeled Luo Yonghao a "silly x". They do not really know Luo Yonghao and his feats of being a teacher, smashing refrigerators and running a blog, but because of the existence of such tags as "silly x", this helps them to make a direct and rapid evaluation of Luo Yonghao, and then based on this, Luo Yonghao can become the after-dinner conversation material, this is the power of the label.

On the other side of the Internet, Lao Luo naturally gains a large number of loyal support by relying on his personality charm, and they put a different label on Lao Luo. Write the picture description here.

Lao Luo is still Lao Luo, but people have different views on him because of the different labels on it. People who don't like him comment and ridicule on the Internet all day long, while those who admire him will be willing to earn money to buy tickets for hammer phones.

I have no intention to evaluate these two behaviors. Let me cite another example.

"Strange talk" is a very hot debate program on the Internet in recent years, in which the debater Chen Ming was attacked by another debater Ma Weiwei and said that it was "standing in the center of the universe calling for love" and then affixed with a big label-"Chicken Soup Man". Since then, when the audience saw Chen Ming again, they first reflected in their minds the three big words "Chicken Soup Man". In fact, Chen Ming is very excellent. Being a teacher, being decent, and behaving appropriately, but in the Internet, because of the entertainment-oriented environment, people are more willing to know everything with the mentality of entertainment, so the "Chicken Soup Man" has become an indelible label as Chen Ming himself said.

We can sum up abstractly that labels are the evaluation and interpretation of some aspects of the behavior of things.

At this point, we can finally lead to the protagonist's notes in this article.

Beginners can understand annotations like this: imagine that the code has life, and the annotation is a label affixed to some living individuals in the code. In a nutshell, a comment is like a label.

You can think of a comment as a label before you start to learn the specific syntax of any comment. This will help you quickly understand its general function. If the beginner has an empty brain in the learning process, please don't panic and say to yourself:

Comments, labels. Comments, labels.

The above is how to understand the Java notes, the editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please 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.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report