Introduction To Java Programming

RSS Author RSS     Views:N/A
Bookmark and Share         
Java is a programming language which was originally developed by Sun Microsystems. This language introduces a simple Object Model concept and most of it syntaxes are derived from C and C++. All the Java applications are compiled to the ‘bytecode' that can run on any JVM (Java Virtual Machine).
For more details please refer to TechCubeTalk(www.techcubetalk.com)


A) Certain Rules To Follow:

Java is a case sensitive language which follows certain rules like:
► All the class names should start with a capital letter.
► If the class name has multiple words, then the first letter of each word should be capital.
► All the method names should start with a small letter.
► If the method name has multiple words, then from the second word onwards the first letter of each word would be capital
► All the Java constants are written in capital letters.
► All Java keywords are written in small letters.

B) Java Variable Types:

There are two types of variables in Java, they are:

► Primitive variable
► Pure object type variable

In Java, everything is a pure object. It is not true in case of primitive variables. But for the convenience of programmers, Java has retained the charm of primitive variables which are used in C and C++. For example:
‘int' which corresponds to the Integer Class.
‘float' which corresponds to the Float Class.
Exception: ‘string' is a variable type which s an exception
For more details please refer to TechCubeTalk(www.techcubetalk.com)

C) Java Packages:

Java is a versatile language which can create various types of applications such as: ‘Applets', ‘Servlets', ‘Swing', ‘Bean', ‘JSP' etc. In order to create such applications we need to include some pre-developed and pre-defined classes, methods, interfaces and constants. A package is a collection of all these pre-developed and pre-defined classes, methods, interfaces and constants. Java is the root package under which all other packages are hierarchically distributed.

For more details please refer to TechCubeTalk (www.techcubetalk.com).

D) Access Status:

There are three types of access status in Java. They are:
► Public
► Private and
► Protected
For more details please refer to TechCubeTalk (www.techcubetalk.com).

Report this article

Bookmark and Share



Ask a Question about this Article