Posts

Java - Data Types

Image
Java  Data Types Java is statically typed and also a strongly typed language because, in Java, each type of data (such as integer, character, hexadecimal, packed decimal, and so forth) is predefined as part of the programming language and all constants or variables defined for a given program must be described with one of the Java data types. Java has two data types,      1)   Primitive data types.     2)  Non- Primitive data types. Primitive data types. Primitive data are only single values and have no special capabilities. There are 8 primitive data types.       1. boolean The boolean data type represents a logical value that can be either true or false .      2. byte The byte data type is an 8-bit signed two’s complement integer . The byte data type is useful for saving memory in large arrays.      3.   short The short data type is a 16-bit signed two’s complement integer . Similar to ...

Java Language - Object Generating & Objects / Java classes

Image
Java Object  Generating & Objects An object is an instance of a class.  A class is a template or blueprint from which objects are created. So, an object is the instance(result) of a class. Object is a super class. Object Definitions: An object is  a real-world entity . An object is  a runtime entity . The object is  an entity which has state and behavior . The object is  an instance of a class.

Java Standards

Image
Java Standards In Java, the coding guidelines are the set of rules that are followed by the developer during application development. These guidelines provide readability to other developer and user who are dealing with the project. The guidelines must be followed because an application is not developed by a single programmer. Some major coding guidelines includes the following: Naming conventions Curley Braces Indentation White spaces Comments Naming conventions These are the rules for naming variables, methods, constants, classes, interfaces, etc. Generally, Java follows the camel case convention. It describes the following: The class and interface name must be noun, and the first letter of each internal word should be capitalized. Ex: Gun , Man The method name must be verb in mixed case, each first letter should be in lower case with the first letter of each internal word should be capitalized. Ex:   main() ,  methodA() All the constants should be in capital letters. ...

Introduction of Java Programming Language

Image
Java Programming Language  Java is a high-level, class-based, object-oriented programming language that is designed to have as few implementation dependencies as possible. This well-known programming language was developed in 1995. Oracle owns it, and Java is used on over 3 billion devices. James Gosling (farther of java) Java was originally developed by James Gosling at Sun Microsystems. It was released in May 1995 as a core component of Sun's Java platform. The original and reference implementation Java compilers, virtual machines, and class libraries were originally released by Sun under proprietary licenses. The language was initially called Oak after an oak tree that stood outside Gosling's office. Later the project went by the name Green and was finally renamed Java, from Java coffee, a type of coffee from Indonesia.[23] Gosling designed Java with a C/C++-style syntax that system and application programmers would find familiar. JVM (Java Virtual Machine) A Java Virtual M...