Search:

Type: Posts; User: Json

Search: Search took 0.08 seconds.

  1. Replies
    9
    Views
    4,640

    Re: final class, final or

    GregorianCalendar yes, Calendar no.

    Does that make sense? There are 3 classes that you should use a factory method for and that is Calendar, DateFormat and NumberFormat. So say the SCJP studying...
  2. Replies
    9
    Views
    4,640

    Re: final class, final or

    Yes you cannot have a final abstract class. There is nothing that says you MUST do what I recommended but its best practice and for your own good really :)

    But if you wish you can do just what...
  3. Replies
    9
    Views
    4,640

    Re: final class, final or

    Usually when you create a utility class such as Math you want to mark the constructors as private or protected because it would not make any sense instantiating a class that has only static methods....
Results 1 to 3 of 3