Java Naming Conventions - thejavaconceptspart

Java Naming Conventions

Java Naming Conventions

Java is strictly a case sensitive programming language, where is Java applications there is a separate Recognization for lower case letters and for Upper case letters.
To use lower case letters and Upper case letters in Java applications, Java has given a set of conventions
  1. All classes names, abstract classes names, interface names must be started with upper case letters and the sub sequent letters must also be upper case letters
    Ex: String, StringBuffer, InputStreamReader
  2. All Java variables names must be started with lower case letters buts the subsequent symbols must be Upper case letters
    Example: in, out, err, pageContext, bodyContent
  3. All the Java method names must be started with lower case letters but the subsequent Symbols must be Upper Case letters.
    Example: cocat(--), forName(--), getInputStream( ),
  4. All Java Constant variable must be provided in Upper case letters.
    Example MIN_PRIORITY, MAX_PRIORITY
  5. All Java Package names must be provided in Lower case letters.
    Example: java.lang, java.until

Other Related Links๐Ÿ”—

  • Java and Java Uses
  • Declaration of enum in java
  • Enum in Java
  • Advantage of OOPs in Java
  • Advantage and Disadvantages of Top-down Programming in Java
  • Top-down and Bottom-Up Approach in Java
  • Java Structure VS Object Oriented Programming
  • Basic Java Introduction
  • Java Naming Conventions
  • Comments

    Popular posts from this blog

    Java & Java Uses - thejavaconceptsparts

    Buzzword in Java - thejavaconceptspart