Transferred from: http://zy19982004.iteye.com/blog/1846537#commentsI. AllRecently found a job, encountered the written test interview questions, summarized as follows, for everyone's reference.Two. j2se
Container
1. How do objects compare to sort?The basic types of Java, such as int, float, and double can all be sorted directly using Java.util.Arrays.sort (object[]) , how is the object compared to the sort? The classes we define are all methods that inherit
1. Register: The fastest storage area, which is allocated by the compiler according to the requirements, we can not control in the program.2. Stack: A reference to a basic type of variable data and an object, but the object itself is not stored in
Java serial communication, generally need the relevant open-source jar package, compared to the general Rxtxcomm.jar and Comm.jar, wherein Rxtxcomm.jar for Comm.jar based on the encapsulation, the operating system, and other bottom of the adaptation.
Response.sendredirect ("http://www.foo.com/path/error.html");Redirection and forwarding have an important difference: When forwarding is used, the JSP container uses an internal method to invoke the target page, and the new page continues to process
Package Stringtest;public class Stringdemo {public static void main (string[] args) {//The following two methods define strings that are not the same as String S1 = new Stri NG ("abc"); String s2 = "abc"; String s3 = "ABC"; S2 and S3 point to the
Java 5
Generic type
Automatic Packing/Unpacking
Enhanced for
Type-Safe enumeration
Variable parameters
Static Import
Annotation
Concurrent Package
Java 6
Web Service Support Annotaion
Scripting
The so-called callback is that the client program C calls a function A in the service program s, and then s at some point in turn calls a function B in C, for C, the B is called a callback function. For example, a window procedure function under Win3
Java instance exercises, java instances
1. Do not use the intermediate variable to swap two numbersPublic class Exchange {public static void main (String [] args) {role = new role (System. in); System. out. println ("enter an integer:"); Long num1 =
Number of 1 (Nanyang oj100)1 Number of time limit: 3000 MS | memory limit: 65535 KB difficulty: 1
Description
Xiaonan has learned binary. He wants to know the number of 1 in the Binary Expression of a number. Can you help him write
Java container BasicsJava container Basics
The Java utility Library provides a Set of well-developed container classes. The basic types are List, Set, Map, and Queue. They all have some features. For example, Set stores only one object for each
Java engineering accumulation-unified verification of front-end pages
In projects, we are faced with the following problem: If we abstract the background code at the front end, we are familiar with it. But how do we do the abstract at the front end?
Output the pinyin corresponding to each number[Description]Enter an integer and the pinyin corresponding to each digit. When the integer is negative, the word "fu" is output first. The 10 digits correspond to the following pinyin:0: ling1: yi2: er3:
Boostrap text designI. layout 1. Title
All title tags in Html, from to . In addition, the class from. h1 to. h6 is provided to give the title style to the text of the inline attribute.
Heading h1. Bootstrap heading h2. Bootstrap heading h3.
Mutual conversion between systemsIt can be seen that there are a total of 12 conversions between the hexadecimal system. The following describes these 12 conversion methods one by one (1) Principle of Binary Conversion to octal: the number of octal
In-depth research on java design patterns (reflection)1. The reflection Class in JDK contains:-1, Class, representing a Class.-2, Constructor, representing the class Constructor.-3, Field, representing class members-4, Method, representing 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