Java Second Test summary 1. Related knowledge points summarizing Java test questions loops and recursive knowledge points
complementary points of knowledge :
- For Loop statement: for (expression 1; expression 2; expression 3) expression one is responsible for the initialization of the variable ! Expression 2 is an expression with a Boolean value called a loop condition, and expression 3 is used to rest the variable and change the loop condition.
- If the value of the expression in the switch statement is not equal to the constant value of any case, then several statements after the default are executed.
- For (declares the loop variable: the name of the array) means that the loop variable takes the value of each element in the array at once.
- The scanner class creates an object, noting that the type after next in the statement is capitalized with the first letter.
- Recursive algorithm is a kind of algorithm that calls itself directly or indirectly.
Java Jdb Debugging Knowledge points
complementary points of knowledge :
* * Command list * * |
usage |
Connectors |
Lists the connectors and conveyors available in this VM |
Run [class [parameter]] |
Start executing the main class of the application |
Print < expressions > |
The value of an output expression |
Dump < expressions > |
Output all object information |
eval < expressions > |
The value of the output expression (same as print) |
Set |
Specify a new value for a field/variable/array element |
Locals |
Outputs all local variables in the current stack frame |
Classes |
Lists the currently-known classes |
Class < id> |
Display the details of a named class |
Methods < class Id> |
Methods for listing classes |
Stop in < class id>.< method >[(parameter type,...)] |
To set breakpoints in a method |
Stop at < class id>:< line > |
Set breakpoints in rows |
Clear < Class id>.< method >[(parameter type,...)] |
To clear breakpoints in a method |
Clear < class id>:< lines > |
Clear a breakpoint in a row |
Clear |
List breakpoints |
Step |
Carry on as the forward |
Step Up |
Executes the current method back to its calling program |
Stepi |
Execute current Instruction |
Next |
Skipping a line (spanning calls) |
Cont |
Continue execution from Breakpoint |
list [line number |
Method |
Use (or sourcepath) [source file path] |
Show or change the source path |
Exclude [< class mode, ... "None"] |
No step or method events are reported for the specified class |
Classpath |
Output classpath information from the target VM |
|
Execute the command repeatedly n times |
Help (or?) |
List commands |
Version |
Output version Information |
Exit (or Quit) |
Exit debugger |
In-Class content results complement
Chapter two, chapter three, programming problems complement
Java Test Summary for the second time