the classes and methods that are loaded is in the method Area. The constant pool is filled with objects of the basic type wrapper class such as Integer.Byte.Short. and the string that Appears.Each time the new object is allocated to the object, it is assigned to a header address in the heap memory. Each time you use the method, the memory is opened in the stack memory to use. the pointer and use of the variable in the Method. when the method ends, the stack memory is closed at any Time.The JVM
class, and the variables that inherit from the parent class are hidden.Method Rewrite principle:1. Must have an inheritance relationship2. The overridden method cannot have more restrictive access rights than the overridden method, which can be the same.3. After rewriting the weight in the method can not be specific to the method to generate more exceptions (exceptions).4. Return value, method name, method must have the same number of arguments as the parent class. (That is, only modify the con
a URL connection for output, set the DOOUTPUT flag to true, or set to False if you do not intend to use it. The default value is False.
11
Public InputStream getInputStream () throws IOExceptionReturns the input stream of the URL used to read the resource
12
Public OutputStream Getoutputstream () throws IOExceptionReturns the output stream of the URL for writing to the resource.
13
Public URL GetURL ()Returns the URL of the URLConnection
Note: This note is suitable for summary and review by people who have read this book, not suitable for entry-level learning Chapter 4 advanced 4.1 multi-task processing iterative server means that the server can only process one client parallel server at a time. It means that the server can process multiple clients simultaneously to Implement Parallel Server in three ways, one customer thread 2, thread pool
at least the required value attribute target that the terminal can make the URL corresponding to the application like:@ServerEndpoint ("/tictactoe/{gameid}/{username}")If the application is deployed to the address: Http://www.example.org/app, then the server terminal responds with the address: Ws://www.example.org/app/tictactoe/1/andre, ETC., All @onopen, @OnClose, @OnError, and @onmessage methods in the server terminal can then be labeled with an optional additional parameter using only @pathp
Application Messages12.5 Model for Web applications--attempt-controller mode12.2 Reasons for using the spring framework12.2.1 Logical Code Grouping12.2.2 multiple user interfaces using the same code base12.3 Understanding the application context12.4 Starting the Spring Framework12.4.1 using the deployment descriptor to start spring12.4.2 start the spring programmatically in the initializerServlet mappings for the dispatcher12.5 Configuring the Spring Framework12.5.1 Creating an XML configuratio
JAVA advanced-Network Programming> Connect to the server through a socketSocket refers to Socket> Read the homepage of any website---------
/** * @author Lean @date:2014-10-9 */public class SocketSample {public static void main(String[] args) {BufferedWriter writer=null;Socket socket=null;try {while (true) {try {Thread.sleep(1000);} catch (InterruptedException
classThe Math class provides a number of methods for mathematical operations The math class is the final class and therefore cannot inherit from the math class the methods in the math class are static methods, so it is not necessary to create an object of the math class You can use the method of the class directly(i) Constants in the Math classpublic static final Double PIpublic static final Double PI(ii) Common methods in the Math classSeven, date class(i)Date classjava.util.Date. The da
own downline, program exit"); System.exit (0);}} catch (IOException e) {//TODO auto-generated catch Blocke.printstacktrace ();}}}Execute the above code and run the result:Client output:Client: Multi-threaded ..... Hello, serverclient: Hello, serverserver: Hello, Clientserver:server send more than one message: server:1. Abcdserver: 2.1234Server: 3. Abcclient send multiple messages: Client:client send more than one message: 1. Xxxxxclient:1. Xxxxx2.yyyyclient:2.yyyy3.zzzzclient:3.zzzzbyeclient:
terminate processing of the request.Advanced Message Queuing Protocol (AMQP), Java message Service (JMS), Microsoft message Queuing (MSMQ).Issue: The way a Session object exists in memory and exists only in a single instance of the Web container, two successive requests from the same client will access different Web containers, while the first container assigns the ID and the second container is unrecognized.Workaround: Use Sticky sessions: enable th
second understanding of:It can be thought that the StringBuffer object is passed in, according to this understanding, is to pass the reference way. Because we actually pass in the address of the object (that is, the reference).So much saliva, in fact, whether it is "citation" or "pass the value", can make sense, the key depends on you are "How to view" The parameters passed "things." This is like the "wave-and-particle duality of light" in quantum mechanics, and if you measure it as a particle,
compiler software to compile the JSP file using the template in the javax.servlet.jsp package, which is compiled with a servlet! Future operations and servlet exactly the same Oh!
On the basis of servlet and JSP, the so-called advanced technology: Jstl,struts ... Nothing more than the use of some tags and mvc patterns.
Go ahead, move on! Victory is in the front!!
7. Multithreading
A very mysterious looking, but easy to get started, difficult to m
This is written by Csdn Linux Moderator:
"Linux Programming"-> "Linux Advanced Programming"-"UNIX Environment Advanced Programming"
It can be said that this order represents the general Linux Program Ape Learning Path, "Linux program
. Kernighan and Dennis M. Ritchie(Chinese version, original version)One of the most misguided teachings in programming teaching the general view is that it is necessary to induce people to delve into program design with simple and interesting graphical material. Some people think that the best way to learn programming is to start with HTML, maybe, and then learn how to cut and paste some javascripts and the
are very fine. The omission of knowledge points in the first book is strongly supplemented. It is advisable to do all the after-school exercises once, which is very helpful for the written examination.3. The third book should read "Java core" Volume 1 and Volume 2. These two volumes basically cover everything javase, Volume 1 can be used as a review and consolid
When I bought this book, I was a senior. The University is coming to an end and I am a Bachelor of computer software.We haven't opened a school similarAlgorithmIntroduction and other courses. By the way, there is a similar data structure. It and Linux are my favorite professional courses in college.At that time, I liked csdn, so I became infatuated with the idea that Gartner accepted programming as an algor
exactly the same as the servlet!In the servlet and JSP based on the emergence of the so-called advanced technology: Jstl,struts ... Nothing more than the use of some tags and mvc patterns.Go ahead! Victory is in front!!7. MultithreadingA very mysterious, but very easy to get started, difficult to master the direction!I recommend two books that I feel are very good. The first is my first instinct to read this book
Talents are very important. in the IT field, Linux talents are very important. How can we become Linux talents that meet enterprise needs?Are those commands (or shell script programming) proficient in Linux?Or can I modify the Linux kernel?Or can I skillfully deploy enterprise applications in Linux?Can I develop software (C, Perl, PHP, and Java) efficiently on the Linux platform )?
There are two lines:I. He
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.