Free content for your website or blog
Home About Us Article Writing Most Read Articles Authors Blog Wiki Contact Us
RSS Register Login
Topics
 
Home > Computer Software >

Introduction To Java Programming

Date Published: 15th July 2008
Bookmark and Share
Author: Moumita Biswas RSS Views: N/A PRINT ASK ABOUT THIS ARTICLE
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).
This article is copyright
Source: http://www.articlealley.com/article_576827_11.html
Bookmark and Share

Related Video

Introduction to Java Programming 1 Pleiadean Wisdom and the NWO Agenda (Part 1) MSVolLicRef #30 Microsoft Volume Licensing Refe... help for those having video upload problems on ...
 

Ask a Question About this Article

>> Make changes to my site using wfsp program I have ...
>> How do I link my Tom Tom to internet for uploading ...
>> C programming problem
>> Find aiss program located on sumner avenue ...
Powered by