Participated in several interviews, summary of the following questions:
Java Runtime memory model, best to draw
The principle of the Java generational GC, the centralized GC algorithm in the JVM
Basic methods and principles of
1. It is recommended to put the class in the package, do not use the nameless package2. Recommended package names are made up of lowercase words, not uppercase3. It is recommended that the name of the package be "inverted by the domain name." The
When I wrote the SSH project today, when I executed the query query = session.createquery (HQL) in a DAO, it did not execute successfully and jumped directly to finally. Then the front desk reported 500 and
Given an integer array of size n, find all elements this appear more than times ⌊ n/3 ⌋ . The algorithm should run in linear time and in O (1) space.Problem Solving Ideas:"The beauty of programming" looking for the original title of the Water king,
Tomcat is a servlet container developed by the Apache Software Foundation Jakarta Project, which implements the servlet and Javeserver Page (JSP) according to the technical specifications provided by Sun Microsystems Support, Tomcat itself is also
Java drip record 1The use of split in 1.JavaIn Java we can use split to split a string into a specified delimiter, and then return an array of strings, following the usage examples of string.split and considerations: Java.lang.string.split Split
1. Trim PerformanceFeature strips the string from the end of the space, preventing unnecessary whitespace from causing an error. public class Trimtest{public static void Main (string[] args) {String str1= "CJC"; String str2= "C JC";
Queue Family
Whether it is a queue or a stack, the Deque Implementation class is now commonly used : such as single-threaded arrayqueue, multithreaded Arrayblockingqueue
Deque: Read as "Deck", is a "double-end queue", that is,
Learn from: http://shenzhenchufa.blog.51cto.com/730213/161581Code from: http://shenzhenchufa.blog.51cto.com/730213/161581Thank the blogger: Shenzhenchufa.While studying, I write some of my own experience. Intentional infringement of copyright, for
ImportJava.io.*;ImportJava.util.*; Public classmain{ Public Static voidMain (String args[]) {Scanner cin=NewScanner (system.in); //arraylist list = new arraylist (); //Scanner scan = new Scanner (system.in);//get another format for keyboard input
HTTP is a client and server-side request and response Standard (TCP), the client is the end user, and the server side is the Web site. By using a Web browser, crawler, or other tool, the client initiates an HTTP request to the specified port on the
One: Inherit extendsFeatures: Subclasses inherit all the properties and methods of the parent class (but not the construction method), and can add new properties and methods for themselves. Java only supports single inheritance [a subclass has only
There are 8 basic data types in Java: 4 integer, 2 floating-point, 1-character, 1-Boolean
Type
Storage space (BITS)
Integral type
Byte
8
Short
16
Int
32
#2014.11.13#Problem Scenario: The string is processed according to the tag, input format: {tag} {target String}Capitalization String1 lowercase String2 The reverse string3....functionn stringn typically implemented with if else is as follows: while
1. implement two variable value exchanges: public static void main (String[] args) { int a = 3; int b = 5; int temp = a; a = b; b = temp; System.out.println (a); system.out.println
Build a multi-module Maven project and a maven Project
Create a maven project under Eclipse, which consists of multiple modules.1. Create a Parent Project
File-> New-> Project-> Maven Project (figure 1)
One figure reads Java Multithreading
1. view the picture with questions
1) the lock, CPU resources, and competition of competitors are awakened.
2) under which circumstances the lock is obtained and under which circumstances the lock will be
JavaSE review diary: abstract class and javase Diary
/** Abstract class * Abstract: * three core object-oriented ideas; * encapsulation: encapsulation. ppp is a part of encapsulation * inheritance; * polymorphism: the reference of the parent class
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