Java Test Summary for the second time

Source: Internet
Author: User

Java Second Test summary 1. Related knowledge points summarizing Java test questions loops and recursive knowledge points

complementary points of knowledge :

    1. 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.
    2. 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.
    3. 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.
    4. The scanner class creates an object, noting that the type after next in the statement is capitalized with the first letter.
    5. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.