abstract class vs private constructor

Viewed 6721

I have a java class which has only static methods and fields, so I don't want any object to be created for that. I can acheive this in two ways,

  1. make class abstarct.
  2. use private constructor.

Which of the two is better way?

1 Answers
Related