In Java, a function is a method. That is, the way to implement a function.Format of the functionModifier returns a value type function name (parameter type parameter) {logical processing;return processing results; The return keyword is used to end
Java serialization mechanism can refer to a lot of information, and recently looked at the time to find some problems.1.The default serialization mechanism, in many books, is that serialization classes only serialize class names, instance variables,
The company used to be a project a tomcat, in order to integrate, I put two items into a tomcat, the result of open tomcat, random access to several Web pages, or login to an account will be an error, promptingJava.lang.OutOfMemoryError:PermGen
Traditional timer Technology Review (jdk1.5 ago)public classtraditionaltimertest {static int count = 0; public static void main (string[] args) {//10 seconds after execution, execute new Timer every 3 seconds (). Schedule (New Timert Ask ()
One, run-time data region1, the program counter is the private space of the thread, each thread has. Java code is executed for the thread or native code, when Java code: the address of the virtual machine bytecode directive, and the native code: The
1 Public class Sopresult {23 Public Static void Main (string[] args) {4 5 int i = 4; 6 SYSTEM.OUT.PRINTLN ("The result is:" + ((i > 4)? 9.99:9)); 7 }89 }Read the program and output the result: the result is:9.0The
Given an index K, return the kth row of the Pascal ' s triangle.For example, given k = 3,Return [1,3,3,1] .Note:Could optimize your algorithm to use only O(k) extra space?The extended version of the previous question is to directly find the number
For the development of the game project of the compatriots, the timer this thing is certainly not unfamiliar, today, I used to make a small summary of the regular time! There is no specific implementation of the principle, but the list of the four
The Java language has a complete set of garbage collection mechanisms.What objects are considered garbage by the Java virtual machine. The following two cases are mainly included:(1) If the object reference exceeds its scope, the object will be
Process : A program in progress (literal Translation)thread : A control unit (execution Path) in the process that is responsible for program executionA process can perform more road strength, called Multithreading.There must be at least one thread
Java language basics
I. Object-Oriented Programming (OOP)
What are the differences and relationships between classes and objects that are called objects of all things?
Class is a definition of a certain type, such as a string, an animal, a person,
JVM-String comparison-bytecode analysis, jvm-string bytecode
Bytecode analysis caused by a String comparison Problem
Public class a {public static void main (String [] args) throws Exception {} public static void aa () {String s1 = ""; // constant
Java multi-thread concurrent collaboration producer consumer design mode and producer Design ModeTwo threads, one producer, and one consumer
Requirement scenario
Two threads, one for production, one for consumption, the producer for production,
What is the difference between ActionSupport and action? actionsupport
Action is an interface and only one execute method needs to be implemented. ActionSupport is an implementation class of the action interface. In addition to implementing the
Java class initialization order, java class initialization order
In java, when we create an object, there is a certain order of loading the members, initialization blocks, and constructor of the object. See the following figure:
I. initialization
Deep understanding of Spring Series 4: BeanDefinition loading prelude,
Framework source code analysis, some code can be temporarily ignored, such as how Spring performs XML Schema validation, XML parsing details, etc. After learning about the
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