Java fundamentals (should be understood by the Java Engineer Primer)

1) building a Java development environment2) Understanding Java features (features)3) Understanding The functionality of Java virtual machine software4) Describe garbage collection concepts5) Enumeration implements the Java code security Method6)

About an issue where any object in Java is cast to an interface type

Any object in Java is strongly converted to an interface type without compiling errors Public class Implements eatable{ publicstaticvoid main (String args[]) { = (drinkable) New Apple (); }} Interface eatable{} Interface

Java Dynamic Agent

Learn about dynamic proxies for Java.In the dynamic agent mechanism of Java, there are two important classes or interfaces, one is Invocationhandler (Interface), the other is proxy (class), and this class and interface is necessary to implement our

Java memory leaks

The previous article mentioned Java garbage collection, today talk about the memory leaks in Java.First, we discuss the Java memory Management mechanism:In Java programs, we typically use new to allocate memory to objects that are on the heap.public

Timer articles---java.util.TimerTask and quarts

Recent projects have appeared in the timing of the task of the things, research, think very good, and later use to get, summed up the next.Only two types of java.util.Timer and quarts are introduced here.Java.util.TimerJava comes with a tool class

Java Replace and ReplaceAll

Replace and ReplaceAll are common substitution characters in Java Public string Replace (char OldChar, char Newchar) replaces the OldChar character with a newchar character in a string, returning a new string The public

Java traversal HashMap, HashSet, Hashtable

I. Traversing HASHMAPMap map = new Hashmap ();Method One: High efficiencyFor (Entry entry:map.entrySet ()) {System.out.println (Entry.getkey () + "=" +entry.getvalue ());}Method Two:For (Integer Key:map.keySet ()) {String value = Map.get (key);

Java Programming: Unsafe classes

The unsafe class is used in multiple classes of JDK source code, and this class provides some of the more underlying functions that bypass the JVM, and is based on its implementation to improve efficiency. However, it is a double-edged sword: As its

Java polymorphic Code

Implementation of polymorphism in Java: interface implementation, inheriting the parent class for method overrides, and method overloading in the same class.Look at the code:Package Com.company; Public classMain { Public Static voidMain (string[]

Java Learning Note _gui (1)

1 Importjavax.swing.*;2 3 Public classGui {4 Public Static voidMain (string[] args) {5JFrame frame =NewJFrame ();6JButton button =NewJButton ("Click Me");7 8 frame.setdefaultcloseoperation (jframe.exit_on_close);9 Ten

Initialization of the Java string type

The following is basically the three most common method of Java string Type new string () does not describe the basic equivalent of the thirdString A; Declares a string type A, which does not have a memory address in the request, nor any point in

JAVA.LANG.NOSUCHMETHODEXCEPTION:ORG.APACHE.CATALINA.DEPLOY.WEBXML Addservlet Solutions

TOMCAT7 after startup: java.lang.NoSuchMethodException:org.apache.catalina.deploy.WebXml Addservlet the problem.and a 404 error occurred while accessing the deployed project.Solution 1:Add in Tomacat's context.xml,I'm using method one to solve the

Java Learning Notes < >iterator sub-interface of the collection framework Listiterator

1 Importjava.util.ArrayList;2 ImportJava.util.Iterator;3 Importjava.util.List;4 5 Public classTest3 {6 7 Public Static voidMain (string[] args) {8List List =NewArrayList ();9 TenList.add ("ABC1"); OneList.add ("ABC2"); AList.add ("ABC3"

Java nio: The FileChannel of the NIO series tutorial in Java

One: Java Nio's FileChannelThe FileChannel in ===>java NiO is a channel connected to a File. You can read and write files through a file channel.===>filechannel cannot be set to non-blocking mode, it is always running in blocking Mode.Ii: Opening of

Java reads Excel exception problems with POI

Recently a Web project needs to complete a small function, the use of file upload and then read the contents of the file to write to the database, here is the operation of the Excel file, Excel files are divided into two suffixes, 03 version of the

Use of four Java thread pools and four java threads

Use of four Java thread pools and four java threads   Java thread pool monitoring Java provides four thread pools through Executors:NewCachedThreadPool creates a cache thread pool. If the thread pool length exceeds the processing requirement, Idle

Gson parses JsonObject, JsonArray, and gsonjsonobject

Gson parses JsonObject, JsonArray, and gsonjsonobject Important core classes in Gson: Gson, JsonParser, JsonObject, and JsonArray. The resolution steps are as follows: Public void parserJsonArray (String strJson ){// Create a Gson objectGson gson =

Use the TCP client ---- & gt; server to transfer files to the specified path and return a friendly feedback, tcp ----

Use the TCP client ----> server to transfer the file to the specified path and return a friendly feedback, tcp ---- First, a method for blind writing to transfer files, but the test found a very difficult problem, here first describes. The error

Java -- & gt; parsing xml pull, java -- xmlpull

Java --> xml pull parsing, java -- xmlpull --> The pull parser is a built-in android parser. The parsing principle is similar to that of the sax Parser. --> Xml file student. xml: 1 2 3 4 5 18 6 male 7 8 9 22 10 female 11 12 13 20 1

Java -- & gt; parse webpage data in Json format; java -- parse webpage in json format

Java --> parse webpage data in Json format, java -- parse webpage in json format --> Official parsing jar package: Link: http://pan.baidu.com/s/1pKDnXKv password: 694d --> Offline Json format detection tool: Link: http://pan.baidu.com/s/1eSHkrOe

Total Pages: 6206 1 .... 2630 2631 2632 2633 2634 .... 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.