Java SE packages, packages, static keywords and code blocks

1. Encapsulation 1.1 Concept of encapsulation There are three major characteristics of object-oriented programs: encapsulation, inheritance, and polymorphism. In the class and object stage, the main research is on encapsulation characteristics. What is encapsulation? simply put It’s the shell shielding details. Encapsulation: organically combine data and methods of operating data, hide the properties and implementation […]

[JUC] 1. synchronized keyword and Lock interface

Article directory 1. JUC 2. Processes and threads 3. Concurrency and parallelism 4. User thread and daemon thread 5. Object locks and class locks 6. Synchronized keyword 7. synchronized case 8. Lock interface 1.JUC JUC, the java.util.concurrent toolkit for processing threads, started with JDK1.5, and has three packages: Basic package Atomic package Lock bag 2. […]

Build a keyword-driven automated testing framework

Preface In the last article, we have learned how the data-driven automated testing framework builds and drives tests! So in this article we will learn how keyword-driven testing drives automated testing to complete the entire testing process. Keyword-driven framework is a functional automation testing framework, which is also known as table-driven testing or action word-based […]

java synchronized keyword

Bytecode level 0x0020 [synchronized] will be added to the method flag. Specifically used are monitorenter and monitorexit 0 load_0 1 dup 2 astore_1 3 monitorenter 4 aload_1 5 monitorexit 6 goto 14 (+ 8) 9 astore_2 10 aload_1 11 monitorexit 12 aload_2 13 throw 14 return Why are there two monitorexits? In addition to normal […]

4.2 final keyword

Mind map: 4.2.1 final keyword modified class Definition and basic concepts: In Java, the final keyword has the meaning of “final” or “immutable”. Elements (classes, methods or variables) modified with the final keyword have specific characteristics. Main applications and precautions: Modified class: Classes modified with final cannot be inherited. Modified method: Methods modified with final […]

Python-match continuous content based on keywords

Use PyQt5 to generate an executable small program: match the content in GGA format from the start keyword to the end keyword range, support multiple selection of files, and clear the copied files generated during the process. The GGA file is as follows: $GPZDA,063052.00,16,10,2023,,*61 $GPGGA,063052.00,4349.7377413,N,12509.8354912,E,4,40,0.6,222.928,M,0.00,M,01,2445*69 $GPZDA,063053.00,16,10,2023,,*60 $GPGGA,063053.00,4349.7377412,N,12509.8354914,E,4,40,0.6,222.926,M,0.00,M,01,2445*61 $GPZDA,063054.00,16,10,2023,,*67 Mini program interface: Run pyinstaller -F -w […]

python-matching continuous content based on keywords Ⅱ

Use PyQt5 to generate an executable small program: match the contents of the pos file between the start keyword and the end keyword, convert UTC time to GPS time, and clear the copied files generated in the process. pos file is as follows: % (x/y/z-ecef=WGS84,Q=1:fix,2:float,3:sbas,4:dgps,5:single,6:ppp,ns=# of satellites % GPST x-ecef(m) y-ecef(m) z-ecef(m) Q ns sdx(m) […]