1. IntroductionJstat is used to monitor the hotspot-based JVM for real-time command-line statistics on the use of its heap, and with jstat we can monitor the specified JVM as follows:-Loading and unloading of classes-View capacity and usage of new generation, Laosheng generation and durable generation-View the new generation, Laosheng generation and durable generation of garbage collection, including the number of garbage collected and the time taken by garbage collection-View the capacity and d
There are a lot of plug-ins in the eclipse environment that can help us with the static analysis of the code, which can help us find bugs in the code as early as possible. Here are a few common plug-ins:
1. PMD
We can install the PMD plug-in for eclipse through Http://pmd.sourceforge.net/eclipse.
PMD is a Java source Code analysis tool based on static rules. It comes with some rules that can be used direct
Introduce a tool I developed, Json-to-java. It can help Java programmers to generate corresponding JavaBean through JSON. This tool is especially useful when you need to invoke the JSON return format API.function IntroductionWe develop Java systems that often need to invoke
specified, only the active objects in the heap was dumped. To browse the heap dump, you can use the jhat (1) command to read the generated file.
-finalizerinfo
Prints information about objects is awaiting finalization.
-heap
Prints a heap summary of the garbage collection used, the head configuration, and generation-wise heap usage. In addition, the number and size of interned Strings is printed.
-his
windows and dialog boxes to implement forms. The controls you need can be directly placed on the form to implement complex functions.
The user interface designer is the most commonly used tool in programming. When you design the interface, you only need to click the design page in the file view label to see the user interface designer. You can use various controls provided by JBuilder to build your own program interface. In addition, jbuilder9 also a
relationship that is represented in UML with a solid line with arrows pointing to the contained class. In the you may find that there are 1 online. 1, this is a description of the inclusion relationship. There are several types of UML classes.1..1 表示另一个类的一个对象只与该类的一个对象有关系0..* 表示另一个类的一个对象与该类的零个或多个对象有关系1..* 表示另一个类的一个对象与该类的一个或多个对象有关系0..1 表示另一个类的一个对象没有或只与该类的一个对象有关系* 任意多个对象关联Aggregation (Aggregation) relationshipsAn aggregation relationship is a relationship between a whole and a part, but some can e
Java interview question: if an array [2, 4, 6, 2,] is known, sort the Array (in descending order, the tool class cannot be used for sorting) and create two threads to output the sorted array alternately, thread name customization,
Package com. swift; import java. util. arrays; import java. util. comparator; public clas
Cobertura is a code coverage measurement tool integrated with JUnitIt 's free, open source. It can be integrated with Ant and Maven, or it can be called from the command linecan generate reports in HTML or XML format HTML results can be sorted according to different criteriaPercentage of code lines and code branches that are covered for each class, package, and overall project calculationEclipse Plugin Address: http://ecobertura.johoop.de/update/ (r
= Robot.createscreencapture (Scrrect);//Grab a full screen image.}Catch(Exception e) {System.out.println (e.tostring ()); } returnscrimg; }}/*** Canvas class, used to display the image captured by the screen*/classPaintcanvasextendsJPanel {PrivateScreencaptureutil Scrcaptureutil =NULL;//Screen Capture Tool PrivateBufferedImage scrimg =NULL;//images to be drawn PublicPaintcanvas (Screencaptureutil screenutil) { This. Scrcaptureutil =Scree
About Eclipse and MyEclipseEclipse is an extensible, open-source IDE. Starting in April 1999, the IDE product development Group was formed by OTI and IBM two companies.In November 2001, IBM donated $40 million worth of source code to form the Eclipse Alliance, which is responsible for the follow-up development of this tool. Originally used primarily for Java language development, eclipse can support differe
java.util.arrays.*;//Imports all static members in the Arrays class. Import static Java.util.collections.*;/*packa/demo.class Packb/demo.classimport Packa.*;import Packb.*;*/import Static java.lang.system.*;//Imports all static members in the System class. Class Staticimport//extends object{public static void Main (string[] args) {out.println ("haha"); int[] arr = {3,1,5}; Sort (arr); int index = BinarySearch (arr,1); Out.println (Arrays.tostring (arr)); System.out.println ("index=" +index);
I. Using the static modifier variable: When shared data is present in an object, the data is statically decorated, and the unique data in the object is defined as non-static in heap memory.Two. Use static to modify static functions: When there is no access to non-static data (object-specific data) inside the function, it can be defined as static.Three. Tool classes are designed to encapsulate functionality (in order to encapsulate data), there are no
Concurrency tool classes
This series of articles mainly on Java concurrency related content, including synchronization, lock, semaphore, blocking queue, thread pool, etc., the overall mind map as follows:
Series of articles list:
Java Concurrency Foundation-concurrency model, base interface, and thread
Java Co
Original: [Boutique] collection of 27 Java development Common tools class. Meet development needs basicallySource code: Http://www.zuidaima.com/share/1596028005993472.htmRecently collected from the online Java development commonly used tool classes, share to everyone. Basically meet the development needs. Recommended for those who love the most code and
Gradle, a new generation of DSL-based Java build tool, and a new generation of gradle
What is Gradle?Gradle is an automated build tool based on the Groovy language and mainly for Java applications and DSL syntax. Speaking of Java's automated build tools, everyone must be familiar with Ant and Maven. Gradle is such a si
Checkstyle of Java white box testing tool
Http://www.automationqa.com/forum.php? MoD = viewthread tid = 1112 fromuid = 21
Java white-box test tool -- dependent on PMDHttp://www.automationqa.com/forum.php? MoD = viewthread tid = 1113 fromuid = 21
Java white box test
Selectsort method, the swap method is called. First there is a definite array called the Selecesort method, in the process of Selectsort method is executed, the Selectsort method calls the Swap method, the specific call is written as swap (arr, x, y); The return value is not required here.In a simple look, here's what return-1 mean, forget .Here is also a function of the printing array, the array into a string should be a method, the return is a string, where the simplest is a string connection
Common tool classes in Java string and MD5 encryption decryption class
We Java programmers in the development of projects are often used in a number of tool classes. Today I share my two tool classes that you can use in your project.
One, String
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.