current location:Home > Technical Articles > Java > JavaBase

  • How to update java
    How to update java
    How to update java: First click on the Start menu - select java for all programs; then find check for update and open the java control panel; finally click [Update] - [Update Now].
    JavaBase 27444 2019-11-14 14:09:44
  • How to jump out of if in java
    How to jump out of if in java
    How to break out of if in java: first add a sign here in front of the if statement, such as "here: if(...){...}"; then use the "break here;" statement inside the if to jump out of if .
    JavaBase 8700 2019-11-14 13:56:35
  • How to write functions in java
    How to write functions in java
    How to write a java function: The format of defining a function is "access modifier return value function name (formal parameter) {}". For example, a function that finds the sum of two numbers can be defined as "public int sum(n1, n2) {return n1 + n2;}".
    JavaBase 4001 2019-11-14 13:38:53
  • What is Java interface
    What is Java interface
    A Java interface is a declaration of a series of methods and a collection of method characteristics. An interface only has the characteristics of the methods but not the implementation of the methods. Therefore, these methods can be implemented by different classes in different places, and these implementations can have different behaviors ( Function).
    JavaBase 3034 2019-11-14 13:35:30
  • How to use == in java
    How to use == in java
    Usage of == in Java: 1. Use the if statement as a judgment condition, such as "if (1 == 1)"; 2. Use it in the ternary operator, such as "1 == 2? "true" : "false ";".
    JavaBase 4091 2019-11-14 13:23:20
  • java custom error exception
    java custom error exception
    How to customize error exceptions in Java: 1. Define a MyException class that inherits from Exception, and pass the error to the Exception constructor through the super keyword in the constructor; 2. Throw the exception yourself through the throw keyword.
    JavaBase 5362 2019-11-14 11:59:50
  • How to upload files in java
    How to upload files in java
    There are three ways to upload files in Java: upload files through streams, upload files using the file.transfer method provided by multipart, and upload files using the class method provided by spring mvc.
    JavaBase 3480 2019-11-14 11:58:27
  • How to implement serialization in java
    How to implement serialization in java
    To implement serialization in java, you need to have a class implement the Serializable interface. This interface is an identifying interface that marks the object of this class as being serializable. Then use an output stream to construct an object output stream and pass writeObject(Object obj) method can write out the implementation object.
    JavaBase 2575 2019-11-14 11:47:16
  • Java project jsp error report
    Java project jsp error report
    Solution to jsp error in java project: 1. Add the relevant dependencies of javax.servlet in the pom.xml configuration file; 2. Right-click the build path of the project to find Server Runtime, select a server lib, and click OK.
    JavaBase 3731 2019-11-14 11:25:23
  • The difference between js this and java
    The difference between js this and java
    The difference between this in js and this in java is: this in js points to whoever called the function, and this in the function points to the window by default; this in java represents a reference to the current object, that is, it points to the new object itself.
    JavaBase 2531 2019-11-14 11:14:46
  • How to write java in linux
    How to write java in linux
    How to write java in linux: 1. Download the appropriate linux version jdk; 2. Create the /usr/java directory and unzip the jdk; 3. Modify the /etc/profile configuration environment variable; 4. Use vim to write java code; 5. Use javac compiles and runs using the java command.
    JavaBase 4606 2019-11-14 10:54:27
  • Is then a java keyword?
    Is then a java keyword?
    Then is not a keyword in Java, nor is it a reserved word in Java. then is a keyword in other programming languages, such as the scripting language shell and Microsoft's Visual Basic language.
    JavaBase 4080 2019-11-14 10:37:27
  • How to set path in java?
    How to set path in java?
    How to set the path for java: First, right-click My Computer-Properties-Advanced-Environment Variables-System Variables; then select "New" in the system variable option; then add the java bin path to the path.
    JavaBase 4008 2019-11-14 10:31:51
  • What should I do if the system cannot find java?
    What should I do if the system cannot find java?
    The solution to the problem that the system cannot find java: First find the jdk directory and copy the jdk top-level directory; then open the system properties and select the system environment variable settings; then add a system variable "JAVA_HOME" and paste the jdk directory.
    JavaBase 5947 2019-11-14 10:19:59
  • What are java collections
    What are java collections
    There are two major categories of Java collections: List and Set, both of which implement the Collection interface. List includes ArrayList, Vector and LinkedList; Set includes HashSet and TreeSet.
    JavaBase 3419 2019-11-14 10:10:40

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!