Question: What happens if the main method is declared private?Answer: Can compile normally, but will prompt "Main method is not public" when run.Question: What is the difference between a reference and a pass in Java?Answer: A pass-through refers to an address rather than the value itself, and a pass value is a copy of the passed value.Question: What else to consider if you want to override the Equals method of an object?Answer: Hashcode.Question: How
Message Service. Communication between applications. Including point-to-point and broadcast.
JAVAMAIL: JAVA mail service. Provides mail storage and transmission functions. He is the core of the mail function in JAVA programming. EXCHANGE development kit in equivalent MS.
JTA: JAVA transaction service. Provides various
.
The difference between a thread and a process:
Dispatch: A thread acts as the basic unit of dispatch and allocation, and processes as the basic unit of resources.
Concurrency: Not only can concurrent execution between processes, but also concurrent execution between multiple threads of the same process.
Owning a resource: a process is an independent unit that owns resources, and threads do not own system resources, but can access resources that belong to the process.
Java has become a huge and complex technology platform. for developers, it is essential to have a better grasp of Java technology and have a deep understanding of the underlying technical processing details. Thoughts on core conceptsUnderstanding can help us draw inferences from each other and improve our understanding of the entire
The Java Collection framework is the foundation of the Java programming language and is an important knowledge point in the Java interview. Here, I've listed some important questions and answers about the Java collection.What is a 1.Java
databaseHibernate's first-level cache is provided by the session, so it only exists in the session's lifetime, when the program calls save (), update (), Saveorupdate (), and calls the query interface List,filter, Iterate, if there are no corresponding objects in the session cache, hibernate will add the object to the first level cache and the cache will disappear when the session is closed.Hibernate's first-level cache is built into the session, cannot be uninstalled, and can not be configured
JRE (Java Runtime Environment Java Run environment)including Java virtual machines (JVM Java) and the core class libraries required by Java programs, if you want to run a well-developed
Presumably, Java users have used JDK containers, List, Set, and Map. Every day, the code runs in thousands of JVMs around the world, and every day programmers are using these classes. Do you know who wrote these cool code? Is Joshua Bloch. He used to work in Sun. Now he jumped to Google and Google is invincible. He is a master. Although he is a master, he is also writing code, so such a person's article must be down-to-earth. Instead, some of them onl
Java has become a large and complex technology platform, for developers to better grasp the Java technology, in-depth understanding of the underlying technical processing details is essential. Mastering core concepts and ideas can help us extrapolate and comprehend by analogy and help us improve our understanding of the entire
technology.
----One, Java server programs and multithreading
----Before Java, there is no mainstream programming language that can provide intrinsic support for advanced network programming. In other locales, the implementation of network programs often requires deep reliance on the technology of the network APIs th
Today to share the Java focus on the wrong part of the point, but also the interview needs of all students to prepare, welcome to communicate correct.The main method in 1.java is a static method, that is, the code in the method is stored in a static storage area.2. Any static code block will be executed before the main method.Initialization order of 3.
Thank you for attending our interview: The following is a summary of some pre-interview preparation and technical reference questions, hoping to help you.First, you need to prepare a job-related self-introduction, including the following:1. Several years of Java development experience, probably summarized under what type of project, how long the experience (such
in the heap instead of the stack, using the final decoration.46. What is GC? Why do you have a GC?GC is the meaning of garbage collection (Gabage Collection), memory processing is where programmers are prone to problems, forgetting or wrong memory recycling can cause program or system instability or even crashes, The GC functionality provided by Java can automatically monitor whether an object exceeds the scope to achieve the purpose of automatically
Today to share the Java focus on the second part of the wrong point, but also the interview needs of all students to prepare, welcome to communicate correct.1. String creation and storage mechanism: When a string is created, it is first found in the constant pool whether the same string is already defined, based on the return value of equals of type string and, if defined, directly to the reference.You do n
Java Collection related interview questions and answers Interview questions1.JavaWhat is a collection frame? What are some of the advantages of a collection framework? There are collections in each programming language, and the original Java version contains several collection classes: Vector, Stack, Hashtable, and ar
The Java Collection framework is the foundation of the Java programming language and is an important knowledge point in the Java interview. Here, I've listed some important questions and answers about the Java collection.In addition, the Code of the rural network before also
The Java Collection framework is the foundation of the Java programming language and is an important knowledge point in the Java interview. Here, I've listed some important questions and answers about the Java collection.In addition, the Code of the rural network before also
understanding of Spring, the principle of non-singleton injection? It's life cycle? The principle of cyclic injection, the implementation principle of AOP, and the several terms in AOP, how they work with each other.Core components: Bean,context,core, single injection is created by a singleton beanfactory, the life cycle is created by the interface to enable the implementation of the loop injection is through the post-processor, AOP is actually throu
1. What is the difference between a process and a thread? A process is a standalone (self contained) operating environment that can be viewed as a program or an application. A thread is a task that executes in a process. The Java Runtime environment is a single process that contains different classes and programs. Threads can be called lightweight processes. Threads require fewer resources to create and res
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.