current location:Home > Technical Articles > Java > Javagetting Started
- Direction:
- All web3.0 Backend Development Web Front-end Database Operation and Maintenance Development Tools PHP Framework Daily Programming WeChat Applet Common Problem Other Tech CMS Tutorial Java System Tutorial Computer Tutorials Hardware Tutorial Mobile Tutorial Software Tutorial Mobile Game Tutorial
- Classify:
-
- Is parameter passing in Java passed by value or by reference?
- This article is from the Java introductory tutorial. It introduces the relevant knowledge of parameter passing in Java. It has certain reference value and I hope it can help everyone. All transfers in Java are by value, and all transfers of instance objects in Java are by reference.
- Javagetting Started 2506 2020-07-30 17:12:19
-
- What is the function of static keyword in java
- Static variables are also called class variables. Static variables belong to a class. All instances of a class share static variables and can access it directly through the class name. Static variables only have one copy in memory.
- Javagetting Started 2473 2020-07-30 17:04:22
-
- Analysis of the relationship between stack memory, heap memory and method area
- All objects stored in the heap area are objects, and each object contains information about a corresponding class. Each thread contains a stack area, and only objects of basic data types and references to custom objects are stored in the stack.
- Javagetting Started 2712 2020-07-30 16:37:28
-
- How to use the Calendar class to determine leap years in normal years
- This article comes from the Java introductory tutorial. It shares with you the method of judging leap years in ordinary years. It has certain reference value and I hope it can help everyone. Ideas: 1. Create a Calendar object; 2. Set the year of the object to the year entered on the keyboard; 3. Set the month to February 28; 4. Add 1 to the number of days to determine whether the number of days is 29.
- Javagetting Started 2874 2020-07-29 17:13:39
-
- Introduction to the life cycle of java classes
- The life cycle of a Java class: class loading, connection, initialization, use, and unloading.
- Javagetting Started 2558 2020-07-29 16:59:13
-
- What should you pay attention to when using inheritance in Java
- When using inheritance in Java, you need to pay attention to: 1. There is only single inheritance in Java, and interfaces have multiple inheritance; 2. When a subclass inherits the parent class, it can get all the attributes and methods of the parent class, but it may not be able to directly use the methods.
- Javagetting Started 2240 2020-07-29 16:46:44
-
- What are the keywords used to define classes in java?
- The keyword for defining a class in java is: "class". To define a class in Java, you need to use the "class" keyword, a custom class name, and a pair of braces to represent the program body.
- Javagetting Started 27151 2020-07-29 14:50:30
-
- Detailed introduction to the File class in Java
- This article is from the Java introductory tutorial. It explains the relevant knowledge of the File class in Java with examples. It has certain reference value and I hope it can help everyone. Construction method: [File f = new File("File path")].
- Javagetting Started 2992 2020-07-23 17:24:54
-
- Examples of the Calendar class in java
- The Calendar class is an abstract class that encapsulates all calendar field values and obtains values based on the different calendar fields passed in through a unified method. Get a calendar object: [Calendar c = Calendar.getInstance();].
- Javagetting Started 2531 2020-07-23 17:10:03
-
- How to calculate the number of days by calculating the time difference between two dates in Java
- This article shares with you the method of calculating the number of days by calculating the time difference between two dates. It has certain reference value and I hope it can help everyone.
- Javagetting Started 5555 2020-07-23 16:58:40
-
- What are the similarities and differences between constructor method and set method in Java?
- Java introductory tutorial: This article introduces the similarities and differences between the constructor method and the set method in Java. It has certain reference value and I hope it can help everyone. The constructor method is automatically called by the jvm when creating an object, and the set method is manually called after the object is created.
- Javagetting Started 4443 2020-07-21 17:14:05
-
- What are the common Java annotations?
- Common Java annotations include: @author, indicating the author who developed the module; @version, indicating the version of the module; @see, referring to the reference direction, that is, related topics; @param, describing a certain parameter in the method. , cannot be written without parameters.
- Javagetting Started 2724 2020-07-21 17:03:41
-
- In Java language, what is the difference between throw and throws
- In the Java language, the difference between throw and throws is: 1. throws is used to declare all exceptions that may be generated by a method without any processing; throw is used to throw a specific exception type.
- Javagetting Started 5464 2020-07-21 16:52:40
-
- What is the function of Scanner class in Java
- Java introductory tutorial: This article introduces the function and usage of the Scanner class in Java. It has certain reference value and I hope it can help everyone. Scanner is used to obtain the string entered by the user on the console.
- Javagetting Started 4980 2020-07-20 17:10:21
-
- What is the difference between next and nextLine methods in Java?
- The difference between next and nextLine in Java is that the next() method will recognize spaces as the end of input; the nextLine() method will recognize the newline character as the end of input.
- Javagetting Started 2710 2020-07-20 17:00:03