当前位置:网站首页>Expression of fatherly love

Expression of fatherly love

2022-06-25 06:46:00 grace. free

2022 year 6 month 20 Japan Monday

Zhuge shisan and Lida understand that they come to work in the company as usual .

Since I came to the company early , Don't go to work so fast .
So the two had the following interesting conversation .

Li : Early !

13、 ... and : Good morning! !

Li : really xx Heat of !

13、 ... and : Is ah , The air conditioner isn't on ?

Li : It probably didn't open .

Li : Ah , The circle of friends is full of filial piety .

13、 ... and : What do you mean ?

Li : What's the phrase , There are thousands of filial sons in the world , Friends occupy more than half .

13、 ... and : ha-ha , Li Da must understand .

Li : ha-ha , To make fun of . I didn't call home yesterday , My father gave me a call .

13、 ... and : You are going to rebel !

Li : ha-ha , Dare not .

Li : In fact, it is wrong to say that those false filial piety in the circle of friends , Every family has its own way of getting along .
My family's way of getting along may be to make an occasional phone call , In fact, they won't talk for a long time , Let's talk , The chat will be over if there is nothing to do recently .

13、 ... and : Is ah , I usually call home once a week , But my sister basically calls once a day .

Li : This is the time to show the benefits of your daughter .

13、 ... and : Yes .

Li : Some families may be open, The mode of getting along is quite advanced , Or they are more like those families in short videos or TV dramas ,

They can talk to their parents , You can share some people and things you meet with your parents every day .

Li : A kind of love is needless to say “ I love you! ” Of , The other is “ Say it out loud ”.

13、 ... and : Yes , There is no right or wrong. , All love , Are all great love .

Li : This reminds me of a Java Knowledge point

13、 ... and : Mm-hmm ? Tell me

Li :Java There is an operator in the “+=”( Of course, "-=" etc. )

+= The operator will perform implicit automatic type conversion , For example, the following code :

package base;

/** * @author  Muzi's day and night programming  */
public class Test {
    
    public static void main(String[] args) {
    
       byte a = 100;
       byte b = 100;
       b+=a;
        System.out.println(b);
    }
}

After compilation, it will actually look like this :

//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package base;

public class Test {
    
    public Test() {
    
    }

    public static void main(String[] args) {
    
        byte a = 100;
        byte b = 100;
        byte b = (byte)(b + a);
        System.out.println(b);
    }
}

You can see b+a Be forced into byte 了 .

We use it Javap to glance at idea Bytecode generated :

 Insert picture description here

Extracurricular knowledge : int Strong go byte、int Strong go short、int Strong go char, The corresponding instruction is :i2b、i2s、i2c

This “+=“ Just like the first kind of love we said , He did something for us in silence ( Type conversion ), He may sneak some money into your traveling luggage , Tell you to be careful when you go out , Save some money , When you feel homesick, you often come back to have a look .

We also write this occasionally :

package base;

/** * @author  Muzi's day and night programming  */
public class Test {
    
    public static void main(String[] args) {
    
       byte a = 100;
       byte b = 100;
       b = b+a;
       System.out.println(b);
    }
}

The compiler will report an error here :

 Insert picture description here

This is very much like what we call the second kind of love , Love just say it ( Just tell you the wrong type , You changed it yourself ), If you want to go far away , He will tell you directly ,

I transferred some money to you via wechat , Put it away , It's time to go out , Come back after a hard time ,

You can still afford to open your mouth .

​ My parents may be the first , Although the family has little money , Every time I go to school, I will bring me as much money as possible . They often tell me just those words :

Don't be unwilling to eat well , Buy a box of milk to drink at home .
Buy more clothes , Don't be reluctant to buy .
Turn on the air conditioner when it's hot , Don't be reluctant to open .
Get along well with your colleagues .
My family is very good , Never mind .

13、 ... and : Is ah , Parents have one wish in their life , You have a good time , Better than them .

Li : The epidemic should be over soon , When it's over, go home and have a look .
13、 ... and : Is ah , I haven't been home for a long time .

Colored eggs :

Above we see b+=a Bytecode , We can learn from it ,+= Will be divided into multiple steps , So it's not thread safe , Some interviewers like to ask if this is thread safe , Why not thread safe . Take a closer look at the picture above me , You should be able to pass the interview question .

原网站

版权声明
本文为[grace. free]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/176/202206250441308074.html