Home>Network programming tutorial> Java tutorial
All ASP tutorial ASP tutorial ASP.NET tutorial PHP tutorial JSP tutorial C#/CSHARP tutorial XML tutorial Ajax tutorial Perl tutorial Shell tutorial Visual Basic tutorial Delphi tutorial Mobile development tutorial C/C++ tutorial Java tutorial J2EE/J2ME Software engineering
Java tutorial
  • Future gets thread result in java

    Future gets thread result in java

    Future gets the thread result in Java: 1. Represents the result of an asynchronous task that may not be completed yet; 2. A Callback can be added to this result to perform corresponding operations after the task execution succeeds or fails.
    2022-05-25
  • Reentrant testing of java ReentrantLock

    Reentrant testing of java ReentrantLock

    Reentrant test of java ReentrantLock: 1. It is a reentrant read-write lock. The read-write lock maintains a ReadLock and a WriteLock internally; ReentrantLock is implemented using CAS+AQS queue. It supports the use of fair locks, unfair locks, and reentra
    2022-05-25
  • How does Scanner obtain a string in java

    How does Scanner obtain a string in java

    Scanner in java obtains a string: 1. next method, the entered valid character is followed by a space, next() will use the space as the terminator; 2. nextLine method, with Enter as the terminator, that is, nextLine() method What is returned is all the cha
    2022-05-24
  • What are the interview questions about locking in Java?

    What are the interview questions about locking in Java?

    Interview questions about locks in Java: The types of locks in Java are divided into six types. The two most common locking methods we have come across are lock and synchronized. This is also the most frequently asked principle and mechanism question in i
    2022-05-24
  • Configuration of java mybatis framework

    Configuration of java mybatis framework

    Configuration of the java mybatis framework: 1. Configure databases. Multiple databases can be configured, but only one can be used by default; 2. Configure SqlSessionFactory. In addition to using XML-based configuration creation, the interface can also b
    2022-05-24
  • Download and installation of mybatis in java

    Download and installation of mybatis in java

    Download and installation of mybatis in java: 1. Unzip the downloaded mybatis-3.5.5.zip; import all jar packages under the lib path, as well as the jdbc driver packages required by jdbc and corresponding to the database into the project.
    2022-05-24
  • How to convert Arrays to list in java

    How to convert Arrays to list in java

    Arrays conversion list in java: 1. List is only used for traversal, use Arrays.asList(); 2. List also needs to add or delete elements, use new java.util.ArrayList, and then add elements one by one; 3. Suitable for arrays of object data.
    2022-05-24
  • What are the interview questions in java arrays

    What are the interview questions in java arrays

    Java array interview questions: Array is an independent module in Java. The knowledge points in it have formed a complete knowledge structure. In the actual inspection, it will involve discussion of variables, actual application of algorithms, etc. When r
    2022-05-23
  • What are the ORM frameworks in Java?

    What are the ORM frameworks in Java?

    ORM framework in Java: Mainly Hiberante is an object-oriented ORM, Mybatis is a semi-automatic ORM, Bee specifically describes the advantages of Hiberante and Mybatis, IBATIS is a persistence layer framework, JOOQ is a Java class library for complex SQL,
    2022-05-23
  • Environment configuration of Hibernate in java

    Environment configuration of Hibernate in java

    Hibernate environment configuration in java: 1. Mapping configuration, find the relevant files in the core jar package of Hibernate, and copy them to Customer.hbm.xml; 2. Core configuration, find the files in the core jar package of Hibernate, and copy th
    2022-05-23
  • Construction of java Spring framework

    Construction of java Spring framework

    Building the java Spring framework: 1. Configure the web.xml file; 2. Configure the applicationContext.xml file; 3. Create a new Controller file; 4. Put the jar package into the WEB-INF/lib folder; 5. Add the project to tomcat .
    2022-05-23
  • Detailed explanation of Spring framework download in java

    Detailed explanation of Spring framework download in java

    Steps to download the Spring framework in java: 1. Find the official website download address; 2. Download springsource-tool-suite; 3. Install springsource-tool-suite; 4. Keep clicking "Next" and finally "Finish". Wait for it to instal
    2022-05-23
  • Application of java type erasure

    Application of java type erasure

    If the type parameters are unrestricted, all type parameters in the generic type are replaced by their bounds or objects. Insert type conversions when necessary to maintain type safety. To maintain polymorphism in extended generic types, bridge methods ar
    2022-05-21
  • Java wildcard usage rules

    Java wildcard usage rules

    Rules for using java wildcards: 1. Define in variables and use upper limit wildcards. 2. Use the super keyword and the lower limit wildcard to define the out variable. 3. If the In variable can be accessed using methods defined in the Object class, use un
    2022-05-21
  • How to use lower bound wildcard in java

    How to use lower bound wildcard in java

    Usage of Java lower bound wildcard: 1. Lower bound wildcard restricts unknown types to specific types or super types. 2. The lower bound wildcard uses the wildcard character ('?'). 3. The class instantiated under the wildcard must be the current c
    2022-05-21