current location:Home > Technical Articles > Java > JavaBase

  • What is the difference between wait and sleep in java?
    What is the difference between wait and sleep in java?
    The difference between wait and sleep in Java: 1. Sleep comes from the Thread class, while wait comes from the Object class; 2. The sleep method does not release the lock, but the wait method releases the lock, allowing other threads to use synchronization control blocks or methods.
    JavaBase 4325 2019-12-27 15:31:17
  • Java method to determine whether string is a number
    Java method to determine whether string is a number
    How to determine whether a string is a number in Java: Use the charAt() method in a loop to return the characters in the string one by one, and then use the isDigit() method to determine whether the specified character is a number.
    JavaBase 13599 2019-12-27 14:50:58
  • What is the difference between html and java?
    What is the difference between html and java?
    HTML and java are essentially different. Java is an object-oriented programming language, and html is hypertext markup language. It is a markup language, not a programming language, and is used in almost all web pages.
    JavaBase 5292 2019-12-27 14:44:32
  • How to create a folder in java
    How to create a folder in java
    In Java, you can use the mkdir() method to create a single folder. When using this method to create a directory, you must ensure that its parent folder exists. Or use the mkdirs() method to create a multi-level directory. This method does not require ensuring that its parent folder exists.
    JavaBase 10134 2019-12-27 14:37:30
  • Is there any difference between c syntax and java syntax?
    Is there any difference between c syntax and java syntax?
    There are differences between c syntax and java syntax, for example: 1. C language has pointers, but java does not have pointers. 2. The identifiers available in C language are numbers, uppercase and lowercase letters, and underscores, which cannot start with a number. In addition to the three types of identifiers in C, the identifiers available in Java have one more dollar sign ($), which also cannot start with a number.
    JavaBase 2853 2019-12-27 14:29:16
  • How to get ip address in java
    How to get ip address in java
    How to get IP in java: You can return the IP address through the HttpServletRequest object, where the getRemoteAddr method returns the IP address of the client that made the request, and the getLocalAddr method returns the IP address of the WEB server.
    JavaBase 7097 2019-12-27 14:27:11
  • What is the difference between java collection and array?
    What is the difference between java collection and array?
    Differences: 1. An array declares the type of elements it contains, while a collection does not. 2. Arrays are static. An array instance has a fixed size. Once created, the capacity cannot be changed. Collections can dynamically expand their capacity and change their size dynamically as needed. Collections provide more member methods to meet more needs.
    JavaBase 8138 2019-12-27 14:06:09
  • Solutions to garbled characters in imported java projects
    Solutions to garbled characters in imported java projects
    Solution to garbled characters when importing java projects: 1. Right-click properties on the project, select Resource, and change Text file encoding. 2. Select Window-preferences-General-Workspace in the IDE and modify the encoding.
    JavaBase 3778 2019-12-27 13:50:52
  • Java method to determine whether a string contains specified characters
    Java method to determine whether a string contains specified characters
    How to determine whether a string contains specified characters in Java: Use the contains method to determine if and only if the string contains the specified char value sequence, the contains() method returns true.
    JavaBase 10618 2019-12-27 13:36:14
  • How to package java program
    How to package java program
    Packaging java program: 1. Select the class or package you want to export in eclipse, right-click and select the Export sub-option. 2. In the pop-up dialog box, select the java file-JAR file-click next. 3. Select the storage location of the jar package and save it.
    JavaBase 6044 2019-12-27 13:25:35
  • How to delete files in java
    How to delete files in java
    Deleting files in java can be achieved using the File.delete() method. The Java File class represents file names and directory pathnames in an abstract way. This class is mainly used for creating files and directories, searching for files, and deleting files.
    JavaBase 5448 2019-12-27 11:54:59
  • How to determine whether a file is an image in java
    How to determine whether a file is an image in java
    How to determine whether a file is an image in Java: 1. Determine by the file suffix name. 2. Determine the file type through the file header. 3. Judge by MimetypesFileTypeMap. 4. Judge through ImageIO.
    JavaBase 8759 2019-12-27 11:37:06
  • The difference between java inheritance and interface
    The difference between java inheritance and interface
    The difference between java inheritance and interface: 1. Use different modifiers to modify. 2. Only global constants and abstract methods can be defined in interfaces, while attribute methods, variables, constants, etc. can be defined in inheritance.
    JavaBase 3953 2019-12-27 10:48:41
  • How to generate random numbers in java
    How to generate random numbers in java
    How to generate random numbers in java: 1. Use the java.util.Random class to generate a random number generator to generate random numbers. 2. Use the Math.random() method to generate random numbers. 3. Use the currentTimeMillis() method to generate random numbers.
    JavaBase 7409 2019-12-27 10:35:27
  • How to call variables in java
    How to call variables in java
    How to call variables in Java: 1. Use new to create a variable in the class, and then call the variable by calling a public variable in the class. 2. Define the variable as a static public variable, and then obtain it directly using the class name.variable name. 3. Use methods or interfaces to pass this variable from other classes.
    JavaBase 4723 2019-12-27 10:21: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!