The most commonly used 100 Java class sharing _java

Source: Internet
Author: User

Most Java software development uses a variety of different libraries. We have recently analyzed from 10,000 open source Java projects to extract the most commonly used Java classes, from Java Standard libraries to third-party libraries. Each class is counted only once in the same project, and the first 100 classes are shown in the list below.

The following list is sorted by the most-used class, and the third value represents the number of items that are used in 10,000 projects, and the complete list looks here .

  1. Java.util.ArrayList (6958)

  2. Java.io.IOException (6866)

  3. Java.util.List (6784)

  4. Java.util.HashMap (5590)

  5. Java.util.Map (5413)

  6. Java.io.File (5097)

  7. Java.io.InputStream (4234)

  8. Java.util.Set (3915)

  9. Java.util.Arrays (3884)

  10. Java.util.Iterator (3856)

  11. Java.util.Collections (3643)

  12. Java.util.Date (3461)

  13. Java.util.HashSet (3278)

  14. Java.io.BufferedReader (3257)

  15. Java.util.Collection (3192)

  16. Java.net.URL (3168)

  17. Java.io.FileInputStream (3044)

  18. Java.io.InputStreamReader (3023)

  19. Org.junit.Test (3008)

  20. Java.io.FileOutputStream (2843)

  21. Java.io.FileNotFoundException (2669)

  22. Java.io.OutputStream (2563)

  23. Java.util.regex.Pattern (2469)

  24. Java.io.Serializable (2437)

  25. Java.util.LinkedList (2372)

  26. Java.text.SimpleDateFormat (2245)

  27. Java.util.Properties (2190)

  28. Java.util.Random (2171)

  29. Java.lang.reflect.Method (2141)

  30. Java.io.ByteArrayOutputStream (2112)

  31. Java.util.regex.Matcher (2012)

  32. Android.os.Bundle (2007)

  33. Java.util.logging.Logger (1999)

  34. Java.io.UnsupportedEncodingException (1968)

  35. Org.junit.Before (1920)

  36. Java.util.Comparator (1896)

  37. Java.io.ByteArrayInputStream (1868)

  38. Java.io.PrintWriter (1862)

  39. Java.util.Calendar (1854)

  40. Android.app.Activity (1843)

  41. Java.net.MalformedURLException (1828)

  42. Android.content.Context (1780)

  43. Android.view.View (1731)

  44. Java.util.Locale (1719)

  45. Java.util.Enumeration (1709)

  46. Java.util.Map.Entry (1705)

  47. Java.io.FileWriter (1677)

  48. Java.io.FileReader (1651)

  49. Android.util.Log (1614)

  50. Android.content.Intent (1601)

  51. Java.lang.reflect.InvocationTargetException (1594)

  52. Java.util.logging.Level (1557)

  53. Java.lang.reflect.Field (1499)

  54. Java.io.StringWriter (1499)

  55. Android.widget.TextView (1442)

  56. Java.util.LinkedHashMap (1409)

  57. Java.io.Reader (1390)

  58. Java.net.URI (1377)

  59. Java.io.Writer (1339)

  60. Java.text.ParseException (1318)

  61. Junit.framework.TestCase (1318)

  62. Java.io.OutputStreamWriter (1295)

  63. Java.io.StringReader (1279)

  64. Java.io.BufferedWriter (1265)

  65. Java.util.Vector (1254)

  66. Java.util.StringTokenizer (1251)

  67. Java.text.DateFormat (1246)

  68. Java.util.concurrent.TimeUnit (1237)

  69. Java.io.BufferedInputStream (1235)

  70. Java.util.TreeMap (1227)

  71. Org.xml.sax.SAXException (1218)

  72. Javax.servlet.http.HttpServletRequest (1175)

  73. Java.io.PrintStream (1168)

  74. Java.util.TreeSet (1160)

  75. Android.widget.Toast (1157)

  76. Java.util.Hashtable (1154)

  77. Java.lang.reflect.Constructor (1139)

  78. Java.net.URLEncoder (1134)

  79. Java.security.NoSuchAlgorithmException (1134)

  80. Org.w3c.dom.Document (1130)

  81. Android.widget.Button (1129)

  82. Org.junit.After (1128)

  83. Javax.servlet.http.HttpServletResponse (1109)

  84. Java.awt.Color (1099)

  85. Java.net.URISyntaxException (1085)

  86. Javax.servlet.ServletException (1081)

  87. Javax.xml.parsers.DocumentBuilderFactory (1076)

  88. Java.lang.annotation.Retention (1075)

  89. Java.security.MessageDigest (1072)

  90. Java.util.concurrent.Executors (1062)

  91. Java.net.UnknownHostException (1057)

  92. Org.slf4j.Logger (1054)

  93. Java.sql.SQLException (1043)

  94. Org.slf4j.LoggerFactory (1042)

  95. Java.util.UUID (1040)

  96. Java.net.InetAddress (1026)

  97. Junit.framework.Assert (1011)

  98. Android.view.ViewGroup (1005)

  99. JAVA.UTIL.CONCURRENT.CONCURRENTHASHMAP (1001)

  100. Java.awt.event.ActionEvent (995)

In the table above, it's not surprising that there are 85 Java standard libraries, because this is part of the language itself, involving Util, Lang, and IO packages.

The following diagram is the distribution diagram used by the package:

The survey is an import statement in the source file, so you don't see a lot of String, Math, StringBuilder, etc., so there's no need to exclude them.

Via Programcreek

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.