Frequently asked questions in Java

Problem Novice Java friends are likely to encounter a lot of problems, the following collection of some for reference. from: Java Club 1. Ask What do application and applets each refer to? Is there a difference in use?

Code for connecting various databases in Java and additional instructions

Data | database added: In the actual project development process, it is necessary to put the JDBC driver package (Xxx.jar) of various databases under the project's Web module in the Lib folder (recommended) or under the application server

A small example of Java reading the contents of a file

Java provides the BufferedReader class used to read strings from the stream, and FileReader classes to read files. We use these two classes to read the strings in the file. Here is an example: Import Java.io.BufferedReader;Import

How Java takes the file name and line number from the source file

How to take the file name and line number in the Java source code file: In the C + + program, the compiler provides two macros to support the acquisition of line numbers and file names in the source file, the two macros are __file__,__line__ You

A general method for array sorting and searching through Java generics

The following is a discussion of array sorting and search capabilities, while a common approach is to implement the comparable interface, a method that needs to be implemented through Java generics. Here's a step-by-step explanation of why, and how

Android Development Java Design Pattern Basic article

Today we do some basic work on some of the design patterns in Android development, and we analyze the architecture design of the Android project:   1. Static Factory method Static Factory method can be regarded as a factory method plus the

Beginner's Guide Java experts start Diagram 2

J2ee second, the development of the first EJB 3 enterprise beans are defined in the EJB2.0 specification. Sessions beans (session beans), entity beans (Entity beans), and message-driven beans (messages driven beans), respectively. The session bean

Simultaneous deployment of Java servlet and database connection pools

servlet| Data | database | database connection keywords: Servlet connection pool Author: Jrq Body: Test Web Application Environment: Win2K Pro + Tomcat 5.0 Note the order in which the servlet and connection pools are deployed in the Web.xml file

Java Servlet API Description Documentation (2.1A edition)

Servlet Glossary Bytecode BYTE code: Machine code generated by the Java compiler and Java interpreter. Cookies Data created by a Web server that is stored on the user's computer and provides a way for a Web site to track the user's parameters and

All kinds of Java resource collection (in the update ...)

Related communities: Sun official Chinese community http://gceclub.sun.com.cn Csdn-java Community http://community.csdn.net/expert/deeptree/RoomForum.asp? BIGROOMID=54 Sunjava Certified Community

A second discussion on Java Chinese problems

Question | Chinese I'm going to say how Tomcat realizes the JSP you know. Preliminary knowledge: 1. Bytes and Unicode The Java kernel is Unicode, even the class file, but many media, including how files/streams are saved Is the use of Word

Implementation of database application system with Java

Data | Database When we do information systems, we have to access the database, I recently took over a project, the project team decided to write in Java, I am responsible for the design and coding of the data layer, in order to improve the reuse of

Mini Java Compiler (IV)

Compiling four, p code instructions Because the system is simpler, the underlying hardware is simplified: 1, there is no register, only one data stack 2, only the main memory for storage, access operations 3, only support main memory indirect

Java Chinese Solution Encyclopedia (next)

Solve | Chinese 4. Classification of Chinese problems and the optimal solution After understanding the principle of Java processing file, we can put forward a set of optimal solution to the problem of Chinese characters.Our goal is: we edited in

Java-based interpreter design pattern

Design One, primer In fact, there is no good example to introduce the interpreter pattern, because it describes how to form a simple language interpreter, the main application in the use of object-oriented language development compiler; In

Performance analysis of the Java I/O API (i)

The scalability of performance IO APIs is of great importance to Web applications. In the previous API for Java version 1.4, blocking I/O was disappointing to many people. Starting with the J2SE 1.4 version, Java finally has a scalable I/O API. This

Solving internationalization problems with Java

Solve the problem if the application system is oriented to many languages, it is necessary to solve the problem of internationalization in programming, including the style of the Operation interface, the version of the prompt and help language, the

The operation method of basic data type and flow in Java

Data | Data type Java In addition to binary files and the use of text files and data based operations, where data refers to the Java basic data types and string. Basic data types include byte, int, char, long, float, double, Boolean, and

Generating XML in Java

xml| generate XML in general, as soon as we mention XML, most of the problems are focused on parsing XML and XML structures. In this type of technology, the world's Business consortium proposes DOM and sax specifications to parse data, Sun provides

From Java code to Java heap

Optimizing the memory usage of application code is not a new topic, but people usually don't understand it well. This article will briefly describe the memory usage of the Java process, and then delve into the memory usage of the Java code that you

Total Pages: 6206 1 .... 781 782 783 784 785 .... 6206 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.