Posts

Showing posts from January, 2022

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 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 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 All the Java method names must be started with lower case letters but the subsequent Symbols must be Upper Case letters.

Java & Java Uses - thejavaconceptsparts

Java Java is an object-oriented programming language that produces software for multiple platforms. When a programmer writes a Java application, the compiled code (known as bytecode) runs on most operating systems (OS), including Windows, Linux and Mac OS)  Java Uses   Java is used as the server-side language for most back-end development projects, including those involving big data and Android development. Java is also commonly used for desktop computing, other mobile computing, games, and numerical computing. Related Link's๐Ÿ”— Define Java enumeration (enum)  Declaration of enum in java Java & Java Uses Important points of enum ------------------------------------------- Others Related Link ๐Ÿ”— Introduction Structured Vs Object Oriented Programming   Top-Down and Bottom-up Approaches Advantages of top-down programming  Disadvantages of top-down programming Why Object Oriented Approach and Features of object oriented programming ? 

declaration of enum in java - the java concepts

Declaration of enum in java :- (1) Enums declaration can be done outside a class not inside a method.         -----------------------------------------                 ๐Ÿ‘‡Click here๐Ÿ‘‡           Complete Java tutorials        ------------------------------------------ (2) The first line inside the enum should be a list of constants and then other things like methods, variables and constructors (3) According to Java naming convention, it is recommended that we name constant with all capital letters.  Example:—     enum Color           {             RED, GREEN, BLUE;            }        public class Test            {         //Driver methods       public static void main (String[ ]args)            }        Color c1=Color.RED;       System.out.println(c1) ;      }      } Output:— RED ------------------------------------------ Related Link's๐Ÿ”— Define Java enumeration (enum)  Declaration of enum in java Java and Java Uses Important points of enum -----------------------------------

enum in java - the java concepts

Enum in java:– An enum is a special "class" that represents a group of constant ( Unchangeable variable like final variable)       To create enum, use the enum keywords (instead of a class or interface), and separate the constants with a comma Note that they should be in uppercase letters: Enumeration serve the purpose of representing a group of named constants in a programming language.       Enums are used when we know all possible value at compile time, such as a choice on a menu, rounding modes, command line flag, etc. It is not necessary that the set of constants in an enums type stay fixed for all.                  enums are represented using enums data type. Java enums are more powerful than C/C++ enums. In Java we can also add variable, methods and constructors to it. The main objective of enum is to define our data types ( Enumerated Data types ) RELATED LINKS๐Ÿ”— DECLARATION OF ENUM IN JAVA IMPORTANT POINT OF ENUM READ MORE---THE JAVA CONCEPTS