When the form is submitted to the server, the server's servlet obtains the request parameters through the Getparamater () method. But notice what time, Request.getparatemeter (name) uses name to refer to the name of the parameter being submitted:(1)
(a) Learning summary1. Read the procedure below to see if you can compile the pass? If not, explain why. How should I modify it? What is the result of running the program? Why do I have to call the construction method of the parent class before the
1, Java.util.ArrayList2. The executor thread pool provides four methods for asynchronous execution.Newcachedthreadpool creates a thread pool that can be cached, and if the thread pool length exceeds the processing needs, you can flexibly reclaim the
1) stackstack memory: Used to run the thread, including temporary data in the method, storing the local variables that the thread is running, and the object's reference1, the memory structure of the Java virtual machine1) Heap heap Memory: an
1. Please describe the difference between GET request and Post request in HTTP protocol.(1) Get data from the server, post is send data to the server.(2) Get pass parameters via URL, post through the body in request.(3) The parameters passed by the
Iterator Interface: Iterates through the elements in the collection collection, called Iterators.boolean hasnext ();Object next ();void Remove ();When using iterator to iterate over a set, the concurrentmodificationexception exception occurs if the
Kinds:
Base64 Encryption , base64 encryption is not in the category of encryption, but for transcoding, such as the transcoding of the URL.
Message digest algorithm , which contains Md5,sha,mac encryption, are irreversible, but some
JSF: A standard framework for building Java WebThe JSF lifecycle is divided into two main phases of the run and render phasesRun Phase :When you first request, build or restore the application view. For other subsequent requests, to perform other
One: IntroductionScenario: When we layered the program: The Web layer, the business layer, the persistence layer, there will be dependencies between each layer. For example: The business layer and the persistence layer, the code of the business
Servlet in Java EEIn the Java EE Specification API (link), the most important two package associated with a servlet is:1,Javax.servletContains a series of interfaces and classes that describe and define a protocol between a servlet class and a
Servlet interfacepublic interface ServletIts implementation classes are: Faceservlet, Genericservlet, HttpServletFirst, IntroductionThe Servlet interface defines the methods that must be implemented by all servlets (classes that implement the
A comparison of sets and arrays Using an array to store objects has some drawbacks, and the Java collection is like a container that dynamically puts references to multiple objects in a container.The disadvantage of an array: Once the length is set,
1. Why use synchronized, because in the case of multithreading, dirty data will be read.Why is there read dirty data, his definition is: in the case of multi-threaded, the same object of the instance of concurrent access , if not synchronous
When viewing Java API Document, one of the methods in java.io.ObjectOutputStream public void writeunshared (Object obj) Thorws ioex Ception, which back-reference curious,Back-reference represents a reverse reference that identifies an object and
The reflection mechanism is widely used. Here's a simple note under PackageCom.shone.ailin;ImportJava.lang.reflect.Constructor;ImportJava.lang.reflect.Field;Importjava.lang.reflect.InvocationTargetException;ImportJava.lang.reflect.Method; Public
2018-04-11Variables and constantsOne, constant 1. Concept fixed constant values in the program2. Classification 1) Literal constantsA direct quantity that represents a direct given value (which can be integers, decimals, ture, false, and so
Classes and objectsThe object-oriented idea is to simulate the real world.Encapsulates the state data of something and its behavior, thus achieving ease of use, reuse, and the purpose of hiding internal state.General variables, such as: int A,
Non-standard parameters, also known as extension parameters, have the following list:-xintSet the JVM to run in interpreting mode, and all bytecode will be executed directly without compiling the cost code.-xbatchTurn off background Code compilation,
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service