What is the practical use of ThreadLocal in Java?

The old rule is to introduce ThreadLocal with an interview Opening remarks Zhang San is not in a good mood because the weather is very hot recently, so he decided to go out for an interview and chat with the interviewer. As a result, someone made an appointment for an interview as soon as he submitted his resume. I lost it. What happene ...

Posted on Wed, 22 Sep 2021 21:07:34 -0400 by htmlstig

C language - string functions and memory functions

character string preface The processing of characters and strings in C language is very frequent, but C language itself has no string type. Strings are usually placed in constant strings or character arrays. String constants apply to string functions that do not modify it. For competition or interview, using these library functions can not o ...

Posted on Wed, 22 Sep 2021 00:13:01 -0400 by zc1

Front end interview question collection browser, array sorting and de duplication problem

1, Reading guide (meaning of thinking) Confucius said: learning without thinking is lost, thinking without learning is dangerous; So let's think about a few questions today. 🕖 2, Do you really understand browsers? ① Why is there a browser compatibility problem? 👋 Explanation:           & ...

Posted on Tue, 21 Sep 2021 20:04:10 -0400 by Chantal

Understanding String Constant Pool from the Byte Code Perspective

Serve directly in jdk1.8 Previously, I didn't understand string constant pools very well. I read some articles and sorted out some experiments by myself. The article mainly explained the questions of "How many objects will a piece of code create?" and "Does two string variables point to the same address?". First String is ...

Posted on Tue, 21 Sep 2021 14:43:38 -0400 by SilveR316

Java learning - reflection mechanism and annotation

1, Reflection mechanism 1. Basic concepts The concept of reflection was first proposed by Smith in 1982. It mainly refers to the ability of a program to access, detect and modify its own state or behavior, and adjust or modify the state and related semantics of the behavior described by the application according to the state and resu ...

Posted on Tue, 21 Sep 2021 04:36:12 -0400 by shaunno2007

C language - detailed explanation of string library functions (including the simulation implementation of some functions)

In the interview, you are often required to write some basic library functions, especially the string library functions. This paper summarizes some common string library functions. Generally, to use these functions, you need to include a header file: #include <string.h> 1, strlen Function function: A function for finding the length o ...

Posted on Mon, 20 Sep 2021 21:13:25 -0400 by Dasndan

Design mode - singleton mode

Design mode – singleton mode preface: How will the interviewer ask questions in the singleton mode during the interview? How should we answer? You may encounter these problems during the interview: Why is the starving singleton inherently thread safe?Why is the traditional lazy singleton non thread safe?How to modify the traditional la ...

Posted on Mon, 20 Sep 2021 15:09:16 -0400 by DaveSamuel

Blog project - Sike Forum

Project introduction Sike forum is a forum project based on the improvement of blog system. If you are still worried about finding a job without proper experience guidance, choose our Sike forum. Here you can see the interview, written examination experience, push information, employment information and so on. Massive information, a job-hu ...

Posted on Mon, 20 Sep 2021 06:19:16 -0400 by metalhead41

Large factory interview questions C language data storage related exercises

First, please briefly describe the concepts of large end byte order and small end byte order, and design a small program to judge the byte order of the current machine. Let's first understand what is called the size end: 1. Large end (storage) mode means that the low bit of data is saved in the high address of memory, while the high bit of ...

Posted on Sun, 19 Sep 2021 23:50:05 -0400 by philwong

Redis Mastery Series - Remove Old and Welcome LRU

This article is included in the column ❤️❤️ Thousands of people praise the collection, a complete set of Redis learning materials, and essential factory skills! Catalog 1. Introduction 2. maxmemory configuration 3. What if memory reaches maxmemory 4. Implementation of LRU algorithm 5. Redis's Approximate LRU 6. Problems 1. Introduct ...

Posted on Sun, 19 Sep 2021 12:22:50 -0400 by duny