, through webserver + cgi, php starts a process to execute the php script until the execution ends, so there is no object for this request.However, in java, tomcat has not been closed, so the entire process remains alive. If you access a jsp with a global variable, the global variable will remain in the jvm memory started by tomcat even after the jsp script finishes executing the response.I don't know
What is a Java Class file?
The implementation of a specific Class is defined in Java. A class definition includes member variables, member methods, interfaces implemented by the class, and the parent class of the class. The Class object
Click to enter _ more _java thousand ask1. What is socketThe socket is also called a socket. The two applications on the network realize the exchange of data through a two-way communication connection, one end of the bidirectional link is called a socket, so the socket is pa
1. Using the class defined below, what is the output of the following code?Output Result:Please summarize the rules of Java field initialization according to the output of the code . There are two places in Java initialization: initialization blocks and constructors, where initialization
granularity view level. And the reason to do this is because there is an interface exists. Like the geneticist, he knew that all living creatures had idescendable interfaces, and that, as long as they were creatures, there must be descend (), so that he could study together, rather than study each creature and end up exhausted.Finally, when do I use interfaces and abstract classes?See
Click to enter _ more _java thousand ask1. What is a stringThe Java.lang.String class represents a string that is usually bright, so-called string, which is a set of characters composed of character sets. It has the following characteristics:String is an immutable objectEach
If you enter a command, such asJavaSo how did the system find the command?In order, the system first searches in the current directory whether there are Java.exe, Java.bat and so on. If not, get the system path (case insensitive) to find.For example, the path of your environment variable has C:\program Files\java\jdk1.6\binThen the system will try to find it under this directory and find the Java.exe then execute it.So path
The following error is reported when starting:Workaround:Go to the following directory: wlntio.dll and paste it into the C:\Java\bin directory (assuming the JDK was previously installed to C:\Java); However, in fact, my directory is only the folder 32, there is no x64, t
Click to enter _ more _java thousand ask1, Java, javax, Sun, org package what is the differencejava, javax, org, and sun packages are all class packages provided by the JDK and are all in Rt.jar. Rt.jar is the Java base Class library (a very important package in the
JQuery Easyui is still more used in Java background development. Of course, objectively speaking, although the development of front-end technology, many background interface design is embedded in the front-end technology framework. But I personally feel that this article will not hinder our study of jquery Easyui.1. What
type modifier (typespecifier). It is designed to modify variables that are visited and changed by different threads. Variables defined by the volatile type are extracted directly from the corresponding memory each time the system uses it, rather than using the cache. After using the volatile modifier member variable, the values of the variables that all threads see at any time are the same. A demo sample using volatile
Under what circumstances is Java much slower than C ++?
Q: Under what circumstances is Java much slower than C ++?
A: Ben Maurer:
To answer this question, we need to first divide the question into several possible causes of slow
synchronization method than a mutex
The acquisition of the lock in the critical section is called entering the critical zone;
And the release of the lock is called leaving the critical section.
Differences (with semaphores and mutexes)
Mutexes and semaphores are visible in any process of the system;
In other words, a process creates a mutex or semaphore, and another process attempts to acquire the lock
Click to enter _ more _java thousand ask1. What is a JNLP file?JNLP (Java Network launching Protocol, Java Web Execution protocol file) is a way for Java to execute Java applications di
be type-detected, or the array itself is holding the object, and the generic container is only in the compiler to check type safety, and in the run time is all object, only half-definition, or the generic container does not hold objects, it will lead to the above problems.Summary: In this chapter we mainly compare arrays with generic containers and observe
Click to enter _ more _java FAQ-base Class Library1, Java.math package has what functionThe Java.math package provides a mathematical class in Java. Includes basic floating-point libraries, complex operations, and arbitrary-precision data operations. Main classes such as:?The classes in math are described below:
arbitrary length shapingBigInteger, the arbitrary length of the non-variable shaping. Beca
Click to enter _ more _java thousand ask1, meta-annotation is whatSee the comments here: what is the commentUnderstanding custom Annotations See here: How to customize annotationsMeta annotations are responsible for annotating other annotations. Java 5 defines 4 standard meta-annotations (meta-annotation): @Target, @Re
Java brother, at least in the appearance of dress up, inside still have to flow my old net blood. ”
One sentence summary: Java and JavaScript are two different languages.
1 Language Features:
1.1 Weak type:
JavaScript does not strictly distinguish between data types when declaring variables (var variable name), not as strict as Java (type: variable name). Al
Click to enter _ more _java thousand ask1. What is ATTACHAPI?The Attach API is a set of extension APIs provided by Sun, which is not a standard Java API. As the name implies, Attach, some programs are attached to the JVM. Simply put, a program
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.