Alex Rivera | Logout

Most interesting/useful Java classes?

Asked 2010-07-25T00:07:49.070
9

I've been using Java for a year or so now, and I constantly find myself discovering new things in the language. Most of this cool stuff, interestingly enough, doesn't come from 3rd-party APIs or libraries, but rather from the classes that ship in the JDK.

So I'm wondering, partly out of curiosity and partly for the education of others and myself, what classes that come in the JDK are the most interesting/useful/your favorite?

Edit
Report

2 Answers

0

Collections framework, Java Utility package esp. the RegExp parsing classes. Really depends on what you want to do!

answered 2010-07-25T00:14:02.463
0
  • Base of all "Object" for equals() and toString() methods.
  • Exception class. You can't do away with it.
  • Collections API. Almost everything from Collections API is useful and used in your code.
  • System class for System.out.println. But it is almost replaced by logger API.
  • ThreadPoolExecutor if your product really uses threads and you really care about them being controlled :).
  • JDBC API. Solely based on if we are talking about usage. But even this is going in background due to use of Hibernate (ORM tools)

Tried to list few useful ones, But I think list will really go long.

answered 2010-07-25T04:02:50.443

Your Answer