[advanced Java interview] Why is it forbidden to use BigDecimal's equals method for equivalence comparison?

BigDecimal is a type provided by the java.math package that can be used for precise operations. For example, in scenarios such as amount representation and amount calculation, double, float and other types cannot be used, but BigDecimal with better accuracy support should be used, and many internal methods, such as addition, subtraction, mu ...

Posted by jannz on Sat, 18 Sep 2021 15:02:53 -0700

Summary of common basic interview questions

1. What is the difference between synchronous and asynchronous? Synchronization means that when a function call is issued, the call will not return or continue to perform subsequent operations until the result is obtained. Asynchrony is relative to synchronization. When an asynchronous procedure call is issued, the caller can proceed with sub ...

Posted by cruzbullit on Sat, 18 Sep 2021 05:04:51 -0700

What an artifact! One click to generate a beautiful blog website, really fragrant!

As a programmer, if you like to output technical articles, you must have had the idea of building a personal blog website. After comparing a lot of blog frameworks, I found that the blog website built with the theme of Hexo + Hexo theme matrix not only has a beautiful interface, but also has powerful functions. Today, I will take you to build a ...

Posted by rammac13 on Fri, 17 Sep 2021 22:56:56 -0700

Java source code - core source code analysis of TreeMap and LinkedHashMap

No, let's start! Guiding language After getting familiar with HashMap, let's take a look at TreeMap and LinkedHashMap in this section to see how TreeMap is sorted by key and how LinkedHashMap is accessed by two strategies. 1. Knowledge reserve Before understanding TreeMap, let's take a look at the two sorting methods in daily work as the ba ...

Posted by spxmgb on Fri, 17 Sep 2021 10:58:37 -0700

Interview question 01.04. Palindrome arrangement

subject Given a string, write a function to determine whether it is one of the permutations of a palindrome string. Palindrome strings refer to words or phrases with the same positive and negative directions. Arrangement refers to the rearrangement of letters. Palindrome strings are not necessarily words in the dictionary. Example ...

Posted by TheDefender on Fri, 17 Sep 2021 04:24:44 -0700

[Java] summary of basic interview questions!

1. Why do you have to override the hashcode method when you override the equals method? equals() and hashCode() are both built-in methods in the Object class. The native equals() uses = = to compare the memory addresses of the two objects. hashCode is a native method. Different objects get different hashcodes. A subclass of Object, such as St ...

Posted by wisewood on Mon, 13 Sep 2021 14:20:26 -0700

java review notes -- Shang Silicon Valley

Chapter 1 Java overview 1.1 Java history Java was born in SUN (Stanford University Network), and SUN was acquired by Oracle (Oracle) in 2009. The father of Java is James gosling. JDK1.0 was released in 1996. The latest version is java 12. We learned Java 8. 1.2 main features of Java language Feature 1: object oriented Two basic concepts ...

Posted by webhead on Sun, 12 Sep 2021 16:53:38 -0700

Spring Boot will always drop God! 10 minutes to get you started

Why SpringBoot Because currently developing WEB applications, Spring Boot is the fastest and most popular way to start Spring projects. No matter what kind of application we want to build, it can let us start and run as soon as possible. There is basically no need to configure anything in the early stage, and the built-in application server al ...

Posted by VMinder on Thu, 09 Sep 2021 23:03:23 -0700

Paint of advanced UI (filter, color channel, matrix operation)

preface In previous classes, we have learned about the whole android program in detail, from Startup to painting. From this, we have involved the Canvas drawing board and our Paint control color style brush. Then we will not explain in detail in the previous basic chapter. Those API s have been published in the previous basic chapter, I also a ...

Posted by CantonWeb on Wed, 08 Sep 2021 15:00:26 -0700

[Correct] Use Kotlin Flow for search optimization, kotlin interview questions

If you don't understand it yet, look at the simplified code below: // Article Error Code­čÖůSimplification for (i in 0..100) { // Simulate Generated Data flow<Int> { emit(i) }.debounce(500) // This is an invalid limit because emit of flow only executes once... .collect { println("-----------------& ...

Posted by langer on Mon, 06 Sep 2021 12:24:35 -0700