Recently in learning Java, using the C3P0 database connection pool, encountered a very strange phenomenon, the main method to test the normal connection to the database, but the use of JSP call code, will be reported as Error!The bottom
Summary of some Java nouns:
Front-End Technology:CSS: is the abbreviation for Cascading style sheets (cascading style Sheets), which is used to define the display of HTML elements, and is the standard technique for formatting Web page content
String.getbyte ("CharSet");//String encodingNew String (, Bytes, "charset");//decodingUse the Bin/native2ascii tool provided by the JDK to implement Chinese transcoding---------------------------------------------------Create a text file (GBK
Concept of the collection:collection classes in Java: is a tool class, like a container, that stores objects with common attributes, with an unlimited number ofFunction of the collection:1. Within the class, organize the data2. Simple and efficient
Java Process for creating objectsJava is an object-oriented programming language that has objects created every moment of the Java program running. At the language level, creating objects is usually just a new keyword, and what is the process of
the difference between an exception and an error. Exception: In Java, the error of the program is mainly a syntax error and semantic error, a program in the compilation and runtime errors we call the exception, it is a VM (virtual machine) notify
Test instructions: To count letters, if they are not the same after the letter, output as is, if any, then output the number of letters and the letter itself.ImportJava.util.*;ImportJava.io.*; Public classmain{ Public Static voidMain (string[] arg) {
This is what I have done together with a senior graduate.We finished the front desk shopping together.Backstage business management is done by me independently, including the addition of goods, modification.The highlight is through the barcode
Java
Keywords (such as abstract)
String
String, StringBuffer, StringBuilder differences
There is a method in string that reverses a string
How threads are implemented
Jvm
GC principle
First, Hill sort rules
Calculates the maximum increment, the formula H = 3h+1
Insert sort with an H as the starting point and the-H increment
Reverse calculates the next increment h = (h-1)/3
Repeat the second step:
Note:
Print stream (only the output stream has no input stream)PrintWriter and PrintStream are output streams, respectively, for characters and bytesPrintWriter and PrintStream provide overloaded print methodsPrintln method for output of multiple data
Test instructions: Enter an angle degree to find the angle between the minute hand and the second hand in a day is greater than the angle degree the proportion of the total time of the daySo the input is 0-120 degrees,Output scale, reserved three
Java Exception Summary:An exception is when the program is running in an unhealthy state1. The origin of the anomaly:A description of the problem in the real thing in the form of a Java class, and it is sealed into an objectIn fact, Java is the
The following code is mainly implemented in Java read files and write files, practice the flow operation.Important: 1. When reading the file, be sure to add the encoding format, otherwise Chinese garbledImport Java.io.BufferedReader;Import
1. Describe the HASHMAP internal implementation principle.HashMap is K-v, K is the only one that does not repeat.In the storage mode, a hashing algorithm is implemented hashmap the bottom layer, and the hash is a search algorithm based on keyword,
This example implements the singleton design pattern by putting the code of the instantiated object into a static function inside the class by privatizing the constructor.classsingleton{StaticSingleton instance =NewSingleton (); PrivateSingleton () {
Java Data type:In the Java domain , the basic data type variable is stored in the data itself , whereas the reference type variable holds the spatial address of the saved data.When assigning a value to a char variable, use "when assigning a value to
1. What is inheritance: A class obtains members, attributes, and behavior methods from another class.Case:Parent classpublic class Animal {Variablepublic int height=1;Methodpublic void Sayheight () {SYSTEM.OUT.PRINTLN (height);};};Sub-classpublic
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