Languages
[Edit]
EN

Java - class, utils, interface - naming convention - ideas and examples

4 points
Created by:
Bartek
2050

Class or fields should be named as noun.

Class naming ideas in java:

  • Object
  • List (ArrayList, LinkedList, Vector)
  • Queue (PriorityQueue)
  • Stack
  • Map (HashMap, Hashtable)
  • Set (HashSet, TreeSet)
  • Reader
  • Writer
  • Builder
  • Mapper
  • Executor
  • Changer
  • Manager
  • Service
  • Component
  • Repository
  • Exchanger
  • Context
  • Status
  • Optimizer
  • Path
  • File
  • State
  • Synchronizer
  • Analyzer
  • Collector | Collectors
  • Provider
  • Converter

Utils class naming ideas in java:

  • FilesUtil
  • PathsUtil
  • StringUtil
  • MathUtil
  • Base64Util
  • DateTimeUtil
  • DomainUrlUtil
  • HtmlUtil
  • IpUtil
  • LoggerUtil
  • PageContextUtil
  • PathsUtil
  • RandomUtil
  • SqlUtil
  • UrlConverterUtil
  • Files

Interface naming ideas in java:

  • Comparable
  • Comparable
  • Serializable
  • Runnable
  • Callable
  • ConcurrentNavigableMap
  • ConcurrentMap
  • Delayed
  • BlockingDeque
  • BlockingQueue
  • Executor
  • CompletionService
  • CompletionStage
  • ExecutorService
  • Future
  • RejectedExecutionHandler
  • RunnableFuture
  • RunnableScheduledFuture
  • ScheduledExecutorService
  • ScheduledFuture

Also take a look at post with java methods naming convention and examples here:

Native Advertising
50 000 ad impressions - 449$
🚀
Get your tech brand or product in front of software developers.
For more information contact us:
Red dot
Dirask - friendly IT community for everyone.

❤️💻 🙂

Join