Common exception capture can locate exception types and make corresponding compensation mechanisms

1. throw and throws What's the difference? throws is used to declare all the exception information that may be thrown by a method. throws is to declare the exception but not handle it. Instead, it uploads the exception to the user who calls it. throw refers to a specific exception type thrown. 2. final,finally,finalize What's the difference? ...

Posted by louisA2A on Fri, 03 Sep 2021 22:37:07 -0700

LiveData overview, kotlin interview questions

Typically, LiveData provides updates only when the data changes and only when the observer is active. An exception to this behavior is that observers also receive updates when they change from inactive to active. In addition, if the observer changes from inactive to active for the second time, it will receive an update only if the value has c ...

Posted by Anim9or on Fri, 03 Sep 2021 20:20:09 -0700

Front end interview self-test knowledge points --- object and object related knowledge points, handwritten deep copy

object Concise expression of attributes let name = "Lucy" let age = 16 let s = "school" let obj = { name, age, s:"PKU" } console.log(obj) // Output {name: "Lucy", age: 16, s: "PKU"} Property name expression let name = "Lucy" let age = 16 let s = "school" let obj = { name, age, [s]:"PKU" } console.log(o ...

Posted by sureshp on Fri, 03 Sep 2021 15:59:02 -0700

RecyclerView event distribution principle, practical analysis, Android interview questions

Recently, when solving the problem of RecyclerView sliding conflict, we encountered a scenario where the problem cannot be solved by using OnItemTouchLister. This article will focus on the following problems in combination with actual cases: Brief analysis of RecyclerView event distribution execution process Why can't adding OnItemTouchListe ...

Posted by jeaker on Thu, 02 Sep 2021 21:29:51 -0700

LeetCode 6-10 question explanation Java version (ten thousand words picture and text explanation LeetCode algorithm question 1-5 = = = = > > > < recommended Collection >)

Question 6. ZigZag Conversion 1. Topic description (medium difficulty) Is to give a string, and then arrange the characters in a vertical "z", which is what it looks like below. Then output each character in line, line 0, line 1, line 2 2. Solution I Follow the process of writing Z, traverse each character, and then sav ...

Posted by shan169 on Wed, 01 Sep 2021 15:06:27 -0700