current location:Home > Technical Articles > Java > JavaBase

  • java inserts mysql garbled code
    java inserts mysql garbled code
    Solution to java inserting garbled characters into mysql: 1. Specify the character set as utf-8 on the front-end page; 2. Use setCharacterEncoding to set the encoding format when receiving parameters in the background; 3. Use the parameter "characterEncoding=utf8" when connecting to the database.
    JavaBase 2086 2019-11-15 16:23:47
  • java program development steps
    java program development steps
    The development steps of a Java program are: 1. Analyze what the class should do; 2. List instance variables and methods; 3. List methods and pseudocode; 4. Write test programs for methods; 5. Implement classes; 6. Test Method; 7. Debug or redesign.
    JavaBase 13659 2019-11-15 16:16:10
  • How to use java code
    How to use java code
    Usage of java code: java code needs to be compiled using a compiler to generate class files in order to be executed correctly. First, we can use the eclipse software to import the java project; then set the encoding of the file; and finally click the run button of eclipse.
    JavaBase 4931 2019-11-15 16:01:26
  • What are collections in java
    What are collections in java
    Collections in java include: 1. List collection (ArrayList collection, Vector collection, LinkedList collection); 2. Set collection (Hashset collection, Treeset collection).
    JavaBase 8509 2019-11-15 15:40:54
  • The difference between interface and class in java
    The difference between interface and class in java
    The difference between interfaces and classes in Java is: 1. Interfaces are a collection of abstract methods, and classes are used to describe the properties and methods of objects; 2. All properties in interfaces are "public static final", and classes are public by default. of.
    JavaBase 4743 2019-11-15 15:26:41
  • How to call the other party's interface in java
    How to call the other party's interface in java
    The method of calling the other party's interface in java is: first open the connection with the url, then set the general request attributes, then set whether to output to "httpUrlConnection" and whether to read from "httpUrlConnection", and finally disconnect the connection.
    JavaBase 3817 2019-11-15 15:15:29
  • The difference between classes and methods in java
    The difference between classes and methods in java
    The difference between classes and methods in Java is: a class is a template for an object, a collection of objects with the same attributes and methods. A class does not exist and is used to describe object information; a method is used to solve something Or a way to implement a certain function.
    JavaBase 10133 2019-11-15 14:57:54
  • How does java allocate memory?
    How does java allocate memory?
    The memory allocation situation in Java is: the heap area stores the object itself and the array itself; the stack area stores references to the basic data type itself and custom objects; the method area stores all class and static variables.
    JavaBase 3094 2019-11-15 14:35:34
  • Java determines whether database table exists
    Java determines whether database table exists
    The method to determine whether a database table exists in Java is: first establish a JDBC data source, and then determine whether the database table exists through the Java.sql.DatabaseMetaData interface. It should be noted that parameter names must be in uppercase during use.
    JavaBase 4092 2019-11-15 14:25:08
  • Java intercepts the last few characters of a string
    Java intercepts the last few characters of a string
    The method for java to intercept the last few characters of a string is: you can use the "substring(int from, int to)" method provided by the String class. First get the length of the string, and then use the length -n of the string as the third element of the substring method. Just one parameter.
    JavaBase 13161 2019-11-15 14:09:40
  • How to enter data in java program
    How to enter data in java program
    Java programs generally use the Scanner class to input data. For example: "Scanner in = new Scanner(System.in)", this means creating a Scanner, the console will wait for an input until the Enter key is pressed, and the input content will be used as the scan object.
    JavaBase 5372 2019-11-15 13:55:06
  • How to understand distributed systems in java
    How to understand distributed systems in java
    To understand the distributed system in Java, you need to understand the following two aspects: 1. A distributed system must be a system composed of multiple nodes, and these nodes are interconnected; 2. Our nodes are deployed on these interconnected nodes, and they are interconnected. The operations will be coordinated.
    JavaBase 3608 2019-11-15 13:21:46
  • java cannot compile
    java cannot compile
    Solution to the problem that java cannot be compiled: 1. Edit the system variable Path and add the jdk\bin directory; 2. Use the editor to convert the java file encoding to utf-8, and use -encoding utf-8 to specify the encoding format when compiling. .
    JavaBase 4654 2019-11-15 13:16:31
  • java compression garbled code
    java compression garbled code
    Solution to Java compression garbled characters: Java's built-in compressed file API will cause garbled characters. We can use the ZipOutputStream class of apache-ant.jar to compress files. Specifically, use "zos.setEncoding("gbk");" to set the encoding. Just format.
    JavaBase 2498 2019-11-15 11:50:16
  • What are the common exceptions in java
    What are the common exceptions in java
    Common exceptions in Java include: 1. Null pointer exception; 2. Exception does not exist in the specified class; 3. Mathematical operation exception; 4. Array subscript out-of-bounds exception; 5. Method parameter error exception; 6. Access permission exception, etc.
    JavaBase 10419 2019-11-15 11:31:54

Tool Recommendations

jQuery enterprise message form contact code

jQuery enterprise message form contact code is a simple and practical enterprise message form and contact us introduction page code.
form button
2024-02-29

HTML5 MP3 music box playback effects

HTML5 MP3 music box playback special effect is an mp3 music player based on HTML5 css3 to create cute music box emoticons and click the switch button.

HTML5 cool particle animation navigation menu special effects

HTML5 cool particle animation navigation menu special effect is a special effect that changes color when the navigation menu is hovered by the mouse.
Menu navigation
2024-02-29

jQuery visual form drag and drop editing code

jQuery visual form drag and drop editing code is a visual form based on jQuery and bootstrap framework.
form button
2024-02-29

Organic fruit and vegetable supplier web template Bootstrap5

An organic fruit and vegetable supplier web template-Bootstrap5
Bootstrap template
2023-02-03

Bootstrap3 multifunctional data information background management responsive web page template-Novus

Bootstrap3 multifunctional data information background management responsive web page template-Novus
backend template
2023-02-02

Real estate resource service platform web page template Bootstrap5

Real estate resource service platform web page template Bootstrap5
Bootstrap template
2023-02-02

Simple resume information web template Bootstrap4

Simple resume information web template Bootstrap4
Bootstrap template
2023-02-02

Cute summer elements vector material (EPS PNG)

This is a cute summer element vector material, including the sun, sun hat, coconut tree, bikini, airplane, watermelon, ice cream, ice cream, cold drink, swimming ring, flip-flops, pineapple, conch, shell, starfish, crab, Lemons, sunscreen, sunglasses, etc., the materials are provided in EPS and PNG formats, including JPG previews.
PNG material
2024-05-09

Four red 2023 graduation badges vector material (AI EPS PNG)

This is a red 2023 graduation badge vector material, four in total, available in AI, EPS and PNG formats, including JPG preview.
PNG material
2024-02-29

Singing bird and cart filled with flowers design spring banner vector material (AI EPS)

This is a spring banner vector material designed with singing birds and a cart full of flowers. It is available in AI and EPS formats, including JPG preview.
banner picture
2024-02-29

Golden graduation cap vector material (EPS PNG)

This is a golden graduation cap vector material, available in EPS and PNG formats, including JPG preview.
PNG material
2024-02-27

Home Decor Cleaning and Repair Service Company Website Template

Home Decoration Cleaning and Maintenance Service Company Website Template is a website template download suitable for promotional websites that provide home decoration, cleaning, maintenance and other service organizations. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-05-09

Fresh color personal resume guide page template

Fresh color matching personal job application resume guide page template is a personal job search resume work display guide page web template download suitable for fresh color matching style. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-29

Designer Creative Job Resume Web Template

Designer Creative Job Resume Web Template is a downloadable web template for personal job resume display suitable for various designer positions. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28

Modern engineering construction company website template

The modern engineering and construction company website template is a downloadable website template suitable for promotion of the engineering and construction service industry. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28