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:
-
- What is main in Java
- The main method in Java is a special method, which is the entry point for program execution. A Java program starts executing from the main method. So we often say that the main method is called the main thread!
- Javagetting Started 3662 2019-11-14 14:25:55
-
- What type is string in java
- String is a reference data type in Java because String is a class. Reference types inherit from the Object class (also reference types) and store data according to the memory model of storing objects in Java. The Java memory heap and memory stack are used for this type of data storage.
- Javagetting Started 5925 2019-11-14 14:16:57
-
- What is the package in java
- Packages in java are actually folders where classes are located, used to organize java files. Some Java classes with similar functions can be placed in the same package to facilitate organization and calling.
- Javagetting Started 11376 2019-11-14 13:56:47
-
- what is java object
- Object is the base class of all classes. All classes inherit from Object and are located in the java.lang package. Arrays are also subclasses of the Object class. Commonly used methods of the Object class are: toString(), equals(), hashCode().
- Javagetting Started 4137 2019-11-14 13:46:02
-
- What is the difference between java se and java
- Java is a programming language that has three versions, Java SE, Java EE and Java ME. Java SE is just a specification and framework for programming in Java. It is not a programming language. Java SE generally includes jdk, jre, and various API documents.
- Javagetting Started 15173 2019-11-14 13:30:57
-
- How to determine whether it is a file in java
- Java's java.io.File.isFile() method checks whether the file representing this abstract path name is a normal file. This method returns true if this abstract pathname is a file, otherwise it returns false.
- Javagetting Started 2480 2019-11-14 13:23:43
-
- What is java static
- Static methods are generally called static methods. Since static methods can be accessed without relying on any object, there is no this for static methods because they are not attached to any objects. Since there are no objects, there is no this. This is it.
- Javagetting Started 4354 2019-11-14 11:58:10
-
- What is rewriting in java
- Rewriting in Java is when a subclass rewrites the implementation process of a method that allows access to the parent class. Neither the return value nor the formal parameters can be changed. For methods to be overridden by subclasses, the permission modifier of the method cannot be lower than that of the parent class.
- Javagetting Started 3528 2019-11-14 11:40:37
-
- Exceptions and errors in java
- Error in Java is an error that the program cannot handle, indicating a serious problem in running the application. Most errors have nothing to do with actions performed by the code writer and instead represent problems with the JVM (Java Virtual Machine) while the code is running. Exception: An exception that the program itself can handle.
- Javagetting Started 3381 2019-11-14 11:24:19
-
- What are the differences between java abstraction and interface
- The difference between abstraction and interface in Java: Abstract classes can have default method implementations; interfaces are completely abstract and have no method implementations. Subclasses use the extends keyword to inherit the abstract class; subclasses use the implements keyword to implement the interface. Abstract classes can have constructors; interfaces cannot have constructors, etc.
- Javagetting Started 2051 2019-11-14 11:19:56
-
- How to wrap line in java
- There are several ways to implement line breaks in Java: using the escape character "\r\n" in Java, using the newline() method of BufferedWriter, and using the System.getProperty() method. Note: The order of \r and \n cannot be swapped, otherwise the line break effect cannot be achieved.
- Javagetting Started 15814 2019-11-14 11:12:42
-
- What is the difference between java queue and stack
- The rules are different: queue, first in, first out; stack, first in, last out. The restrictions on insertion and deletion operations are different: queues can only be inserted at one end of the table and deleted at the other end of the table; stacks can only be inserted and deleted at one end of the table. The speed of traversing data is different: the queue is traversed based on the address pointer; the stack needs to traverse the entire stack.
- Javagetting Started 2836 2019-11-14 11:07:40
-
- How to comment in java
- In Java, there are three ways to mark comments: //Single-line comments, multi-line comments: /* */, document comments: /** */; /* */ comments cannot be nested. In other words, you cannot simply wrap the code with /* and */ as a comment, because the code itself may also contain a */.
- Javagetting Started 3851 2019-11-14 11:03:32
-
- What is java queue
- A queue is a special linear list that follows the principle of "first in, first out". In our daily use, we often use it to operate data concurrently. In concurrent programming, it is sometimes necessary to use thread-safe queues. If you want to implement a thread-safe queue, there are usually two ways: one is to use a blocking queue, and the other is to use a thread synchronization lock.
- Javagetting Started 4250 2019-11-14 10:56:17
-
- The difference between stack and queue in java
- The difference between a stack and a queue in Java: A stack is a bucket. What is put in last is taken out first. What is underneath it cannot come out until it comes out. (Last in, first out); Queues can only perform deletion operations at the head of the queue and insertion operations at the end of the queue, while stacks can only perform insertion and deletion operations at the top of the stack. (first in, first out)
- Javagetting Started 3129 2019-11-14 10:55:03