当前位置:网站首页>Byte Summer Internship - 20220304
Byte Summer Internship - 20220304
2022-04-22 07:23:00 【shooter7】
problem
1. Self introduction. . Choose a familiar project in your resume to talk about .
- Let's talk about the implementation of login authentication
- JWT、token、session What's the difference
- Is the library table designed by yourself
- The logic of payment. Let's talk about the process , Or find a familiar module to talk about ( The business layer )
2. Know what linux Common commands ? Project deployment what container the project is in ?
3. What have you met JVM problem , And check it out ?
4. Understand what singleton mode is ? Write code to implement a single example mode ?
answer :


- Code
public class Main {
public static void main(String[] args){
// test instance1 It's created directly ,instance2 Is created before returning
Singleton instance1 = Singleton.getInstance();
Singleton instance2 = Singleton.getInstance();
System.out.println(instance1==instance2);
}
}
class Singleton{
// Use the member variable of a class to mark whether the class has created an instance
private static Singleton instance;
// Privatization has no parameters
private Singleton(){
}
// Provide external interface , Static class methods , When the class is loaded, call , It can be called directly through the class name
// Because to access the privatized parameterless structure , So add static modification
public static Singleton getInstance(){
if(instance==null)instance=new Singleton();
return instance;
}
}
5. Where do you usually learn technology , Have you learned any new technology recently ?
6. Do you have any questions or additions ?
版权声明
本文为[shooter7]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220612282603.html
边栏推荐
- Complete a student information management system and systematically practice object-oriented, function, string and other knowledge. Realize the comprehensive application of knowledge. Use classes, fun
- secureCRT无限循环脚本
- Raspberry Pi 4b
- (一)Sql Server的下载与安装
- Mongodb install self start service
- Jenkins部署pm2
- [number theory] [indefinite equation] n-ary primary indefinite equation, Pell equation, Pythagoras theorem, Fermat theorem
- 14 lines of code to complete arbitrary selection of image crawling
- 虚拟机磁盘空间缩小
- ASP. Net daily development notes ---- export to excel
猜你喜欢

Complete a student information management system and systematically practice object-oriented, function, string and other knowledge. Realize the comprehensive application of knowledge. Use classes, fun

Design a circle class with private member radius representing radius and function get_ Radius () is used to obtain the radius and area () is used to calculate the area of the circle; (2) Define a tabl

(二)Sql Server的基本配置以及使用Navicat连接Sql Server

Define an abstract role class with name, age, gender, hobbies and other member variables. It is required to hide all variables as far as possible (private if possible), and then read and write each va
![ERROR: [Hsi 55-1545] ,无法正常生成fsbl,Unable to read in MSS file,Failed to closesw system.mss](/img/4e/34e2820ff8579007b20b33b27d8f1d.png)
ERROR: [Hsi 55-1545] ,无法正常生成fsbl,Unable to read in MSS file,Failed to closesw system.mss

What is socket programming?

pycharm使用清华镜像源提高下载速度 只需要五步完成

虚拟机磁盘空间缩小

Write a method Sanjiao (a, B, c) to judge whether the three parameters can form a triangle. If not, throw an exception illegalargumentexception and display the exception information a, B, C "cannot fo

SQL复习语法笔记整理,新鲜出炉
随机推荐
The only storage area in the JVM where GC and oom will not occur
. net learning notes (2) -- ubiquitous reflection (including the method of reading JSON)
Vscode opens the applet and runs it to wechat developer tool wxml file compilation error
Find a notepad file by yourself, find the data material by yourself, and count the times of three keywords or sentence entries in the whole text.
【数论】素数(二):素数筛法(埃式筛、欧拉筛、区间筛)
JVM中唯一一个不会发生GC和OOM的存储区域
桥接模式下主机ping不通虚拟机
a5 transceiver 信号vod和预加重调整关系
自己寻找一个记事本文件,数据素材自找,统计整个文本中,某三个关键字或者语句词条出现的次数。
【题解】洛谷P6186 [NOI Online #1 提高组] 冒泡排序:【冒泡排序】与【逆序对】问题
JS realizes clicking avatar to upload picture modification
macOS安装redis并设置服务自启动
[number theory] congruence (4): univariate linear congruence equations (elimination of two, Chinese remainder theorem)
sql server快速入门
SQL复习语法笔记整理,新鲜出炉
LaTex中添加作者照片和作者简介
Eight functions of random library
[number theory] prime number (III): prime number judgment method (simple method, modular 6 method, Rabin Miller and improvement)
【数论】素数(一):基本概念、性质、猜想、定理
win10修改命令行默认字体