One, the Java part of the test
Question 1: (5 points)Write a program that connects each element of an array of integers with commas to a string, for example, a string of "1,2,3" based on an array of [1][2][3] content.
Question 2: (6 points)Write a
The previous development is to write directly to the SQL statements, the recent project leader required to interact with the database to use stored procedures, at the beginning also met some difficulties, but still finished, now in this my results
platform Environment: myeclipse10,jdk1.7,tomcat-7.0.50,oracle11g
Oracle drives use Ojdbc6_g.jar java.lang.ClassNotFoundException:orcale.jdbc.driver.OracleDrive, driver error
But sometimes the driver is correct, start tomcat but the error prompts,
Welcome reprint, Reprint please specify the Source: http://it.zhutibo.com/action/article1227.htm
Learn the first question of enumerations: Why not use the static final field instead
I think almost every person learning the Java language in the study
Transferred from http://lavasoft.blog.51cto.com/62575/51926
I. Overview What is threadlocal? In fact, Threadlocal is not a local implementation version of a thread, it is not a threads, but a threadlocalvariable (thread-local variables). Perhaps it
StringTokenizer tokenizer = new StringTokenizer (number, ",");
boolean bool = true;
while (Tokenizer.hasmoretokens ()) {
try {
Double.valueof (Tokenizer.nexttoken ());
catch (Exception e) {
bool = false;
}
}
How to convert a string to an array
int
As we all know, the map structure in Java is stored key-->value key value pairs, and according to the characteristics of the map, there are no two key elements in the same map, and value does not have this limitation. In other words, the key in the
Personally feel that, because of the GC, most of the cases will not appear. However, if some resources are not shut down (for example, I/O files and database connections are not closed), it is possible that out of memory occurs.
Above, just personal
The Throwable class is a superclass of all errors or exceptions in the Java language, which has 2 subclasses, exception, and error.
Error indicates that a program has undergone a very serious error, cannot be recovered or continues to run, and
To output a CSV file, just change the bottom of the information can be, the following settings can be:
Response.setcontenttype ("application/csv;charset=gb18030");
Response.setheader ("Content-disposition", "attachment; Filename=x.csv ");
Garbled
Recently the company is going to make a single sign-on application, integrating forums and websites. To find a lot of information on the Internet, and finally a successful solution, the blog to record one side forget.
Single sign-on first of all to
Demo Code Download Address
Simple single-threaded queues--bad printers are encountered at work. Send a message to the printer, the printer will print, if the printer is still printing,
If you send another message to print, you will receive a message
Method One:
Runtime Rt=runtime.getruntime ();File F=new file ();Rt.exec (File.getabsolutepath ());
This can only work on those EXE files, such as TXT or rar such can not be executed will appear ioexception;
To TXT file to use Rt.exec
From the official Apache download axis, I used axis2-1.2 this version, the latest is axis2-1.3 version, but 1.3 need JDK1.5 support, I am the JDk1.4, so I use axis2-1.2 as WS (Web Service) services.
Put the downloaded war package into Tomcat's
/********************************************************************* Final Update Date: $Date: 2005/11/16 05:48:47 $ [$Revision: 1.11 $]* Last updated by: $Author: lhj_kk$* Copyright (c) 2004-2006 NNN ATA CORPORATION, All rights reserved.**********
1. Case Studies
For example, you would register a user, preceded by a business logic, to invoke the Save (user) method of the data access layer. First write a data Access object's interface
Java Codepublic interface idao{
void Save (user user)
1. Add the following Tomcat server configuration in ~/.m2/settings.xml (here's a question: Do you want to configure tomcat-user.xml locally?) There are tutorials on the Internet to configure it.
tomcat6
tomcat
tomcat
2. Law 1: Configuring in POM
Before the content, wrote a few about the Java EE Standard Blog, and now continue to improve these content, this content mainly to add a blog.WebLogic Server uses JTA1.0.1A to implement and manage transactions WebLogic Server provides the following
Introduction to 1.nioThe FileChannel class of NiO can be obtained by means of FileInputStream and FileOutputStream and Randomaccessfile Getchannel method, or FileChannel class of open method, such as obtaining,
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