current location:Home > Technical Articles > Java > JavaBase
- 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:
-
- What is factory pattern java
- Factory pattern is one of the most commonly used design patterns in Java. This type of design pattern is a creational pattern, which provides an optimal way to create objects. You only need to call the factory method to create an object, which has the advantages of easy extension and encapsulation.
- JavaBase 3515 2019-11-11 09:34:57
-
- Solve the main class cannot be found or cannot be loaded error in Java
- The reason for the error that the main class cannot be found or cannot be loaded in Java is: by default, the java instruction searches for the address of the class file in the directory specified in the CLASSPATH environment variable. Solution: Only use the java package name + class name to execute.
- JavaBase 9893 2019-11-11 09:20:42
-
- what is collection java
- The Java collection class is stored in the java.util package and is a container used to store objects. Collections can only store objects, and they are references to objects rather than objects themselves; collections can store different types and an unlimited number of data types.
- JavaBase 3320 2019-11-11 09:17:01
-
- The difference between interface and abstract class in java
- The difference between interfaces and abstract classes in Java: Abstract classes can only inherit once, but can implement multiple interfaces; interfaces and abstract classes must implement all methods in them. If there are unimplemented abstract methods in the abstract class, then the subclass also needs to Defined as an abstract class. Abstract classes can have non-abstract methods.
- JavaBase 3203 2019-11-11 09:12:33
-
- The difference between java heap and stack
- The difference between heap and stack in Java is: 1. Stack memory stores local variables, and heap memory stores entities; 2. Stack memory is updated faster than heap memory; 3. The variables stored in stack memory end their life cycle. Released, the entities stored in the heap memory will be recycled by the garbage collection mechanism from time to time.
- JavaBase 5076 2019-11-09 17:58:31
-
- The difference between java abstract class and interface
- The differences between abstract classes and interfaces in Java are: 1. Abstract classes can contain ordinary methods, while interfaces can only contain public and abstract methods; 2. Member variables in abstract classes have no access restrictions, while variables in interfaces can only Modified by public, static, and final.
- JavaBase 3081 2019-11-09 17:45:37
-
- The difference between java nio and io
- The difference between nio and io in Java is: 1. io is stream-oriented, and nio is buffer-oriented; 2. The various streams of io are blocking, and nio is non-blocking mode; 3. nio has a selector mechanism, while io None.
- JavaBase 2540 2019-11-09 16:57:59
-
- The difference between java = and ==
- The difference between the symbol = and the symbol == in the Java language is: in the Java language, the symbol = represents an assignment operation, while the symbol == is used to determine whether the values on both sides of the symbol are equal.
- JavaBase 4624 2019-11-09 16:25:30
-
- The difference between java threads and processes
- The difference between java threads and processes: a thread only belongs to one process, but a process can have multiple threads, but at least one thread; threads are the basic unit of processor scheduling, but processes are not.
- JavaBase 3029 2019-11-09 14:02:10
-
- what is java abstract class
- Java abstract class uses the abstract keyword to modify a class. This class is called an abstract class. An abstract class is a collection of public attributes of all its subclasses and a class that contains one or more abstract methods.
- JavaBase 7096 2019-11-09 13:22:05
-
- What is java serialization
- Java serialization is the process of converting Java objects into byte streams. When Java objects need to be transmitted over the network or persisted in files, Java objects need to be serialized.
- JavaBase 2699 2019-11-09 11:46:39
-
- what is java constructor
- The java constructor method is a method defined in a java class to initialize an object. Use the new+constructor method to create a new object and assign values to instances in the object.
- JavaBase 14394 2019-11-09 11:31:05
-
- what is java enumeration
- Java enumeration is a special data type. The reason why it is special is that it is a "class" type but has more special constraints than the type. However, the existence of these constraints also makes the enumeration type simple and safe. sex and convenience.
- JavaBase 6529 2019-11-09 11:06:36
-
- what is java class
- A Java class is a description of a certain type of thing, an abstract and conceptual definition; Java requires that each data type must be a class; all declarations of classes in Java begin with class.
- JavaBase 12290 2019-11-09 11:01:57
-
- what is java package
- Java package is a Java feature that exists to facilitate the management and organization of the directory structure of Java files and prevent naming conflicts between different Java files. Java provides a package mechanism to distinguish the namespace of class names.
- JavaBase 5710 2019-11-09 10:55:19