current location:Home > Technical Articles > Java > JavaBase

  • 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 3619 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 9941 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 2859 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 3761 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 12771 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 5177 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 3414 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 4444 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 2316 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 10133 2019-11-15 11:31:54
  • What is java written in?
    What is java written in?
    JAVA itself is a programming language, and the files generated by it are compiled and run on the JVM. JVM is developed by C language and assembly language. Based on this is Java. The virtual machine plays the role of parsing and execution.
    JavaBase 4202 2019-11-15 11:23:38
  • Is java interface a class?
    Is java interface a class?
    Java interfaces are not classes because classes are defined using the class keyword and interfaces are defined using interface. Moreover, a class is a template, which describes the behavior and status of a type of object; an interface is a declaration of a series of methods and a collection of method characteristics.
    JavaBase 2838 2019-11-15 11:08:17
  • Common syntax errors in java
    Common syntax errors in java
    Java syntax errors include: 1. The variable may not be initialized; 2. The variable is repeatedly defined; 3. The symbol cannot be found; 4. The method cannot be found; 5. The class cannot be found; 6. The array subscript is out of bounds. Error; 7. String subscript out-of-bounds error, etc.
    JavaBase 6175 2019-11-15 11:03:52
  • How to determine whether an object is null in java
    How to determine whether an object is null in java
    Java can use object == null to determine whether the object is null. It returns true when the object is null and false when it is not null. When object != null is true, further determine whether all properties of the object are null.
    JavaBase 6051 2019-11-15 10:55:34
  • Java determines whether an object is an array
    Java determines whether an object is an array
    Java can use the isArray method of the array to determine whether the object is an array. The return value is of Boolean type. If the object passed in is an array, it returns true. If it is not an array, it returns false.
    JavaBase 3617 2019-11-15 10:45:23

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!