| To understand thoroughly the Java language in the IO system |
| Java.io the core of the Java library provides a comprehensive IO interfaces, including: reading and writing paper, the output of standard equipment and so on. IO is based on stream in the Java-based input and output of all of the data being written t... |
| Detailed analysis of Java abstract class and interface difference |
| In the Java language, abstract class and interface to support the definition of the abstract category two mechanisms. It is due to the existence of these two mechanisms, only to give a powerful object-oriented Java capability. abstract class and the ... |
| Java generic equivalent of the understanding and realization |
| Generic Java SE 1.5 is the new features, the generic nature of the type of parameters, that is operated by the type of data has been designated as a parameter. This parameter can be used in the type of category, and the interface methods to create, r... |
| JPDA with easy debugging Java code |
| Can not be accessed in the running instance, a Java debugging process can be quite troublesome when the application environment in the long-distance running, and are not in the console log files or export any results, debugging more difficult. If you... |
| Java Web site to the request sent POST |
| To a Web site can send POST requests need only simple steps: First, and the URL of URLConnection dialogue. URLConnection can easily get from the URL. For example: / / Using java.net.URL and / / Java.net.URLConnection URL url = new URL ( http://jobsea... |
| Java application skills: explain the operation of the Cookie |
| 1. Settings Cookie Cookie cookie = new Cookie (the key, value); Cookie.setMaxAge (60); 60 seconds set survival, if set to a negative value, for the browser process Cookie (memory preservation), the failure to close your browser. Cookie.setPath ( / te... |
| Timing implementation of the mandate of three methods |
| 1) java.util.Timer This method is the most commonly used, but this method to manually start your tasks: Timer timer = new Timer (); Timer.schedule (new ListByDayTimerTask (), 10000,86400000); ListByDayTimerTask here must extends TimerTask inside of t... |
| Java programs encryption and anti-encryption |
| First, we take a look at the anti-encryption Java programs, which is what is commonly known as Crack process, only to understand this process, we can effectively on our procedures for encryption. Usually, we get Java programs Crack-there are two kind... |
| Java installed in the background Jpanel |
| 1. ImagePanel create a category, the code below import java.awt.BorderLayout; import javax.swing.JPanel; import java.io.File; import javax.imageio.ImageIO; import java.io.IOException; import java.awt.Image ; import java.awt.Graphics; import java.awt.... |
| Hibernate local use of a simple SQL query |
| StringBuilder sb = new StringBuilder ( SELECT PR.ID, PR.LOG_TITLE, PR.DOG_INFO, DI.NAME, (CASE WHEN PL.TOTAL 0 THEN PL.TOTAL ELSE 0 END) AS TOTAL); sb.append ( FROM DOG_INFO DI, DOG_LOG PR LEFT JOIN (SELECT PL.TARGET_ID, COUNT (PL.ID) AS TOTAL FROM P... |
|