hi folks,

No More fear of pointers........


Break the old rhythm.Explore the new horizons.


Be a crew member to the new ship......


get easy solutions to solve ur programming issues



WELCOME TO THE WORLD OF JAVA

HOW TO SET PATH AND CLASS PATH

Many people seem to have problems with setting the PATH and CLASS PATH variables, and struggle even when they know that this is the cause of their problems in trying to create the well formed command line "set classpath...etc"


I personally went and created the environment variable through Windows, which worked the first time, after struggling for a while at the command line syntax.

The steps I took to do it in Windows XP: Start->Settings->Control Panel->System->Advanced Tab-> Environment Variables



"User variables for username" Box->"New" Button

Variable name:PATH

Varaible value: C:\Program Files\Java\jdk1.6.0_05\bin

Click on OK and select the new tab

Variable name:CLASS PATH

Varaible value: C:\Program Files\Java\jdk1.6.0_05\lib

"Ok" until you close all the windows, and reboot the system. (Technically you only need to end java processes, but a reboot never hurts)



Everything should work now.

I've never been a fan for hand holding, but wasting time on code set up is frustrating and wasteful. Good luck everyone.

FEATURES OF JAVA

SIMPLE:

              Java is a simple language which can be learned easily,even if you have just started programming,it is also a simplified version of Internet and Object oriented programming language.

OBJECT ORIENTED:
                                 Almost everything in java is class,a method or an object.Any cod that you write in java is inside a class.Java is purely object oriented.An object is a software bundle of variable and related methods.

DISTRIBUTED:
                         Java is designed as a distributed language for creating applications on networks.It has ability to share both data and programs.

INTERPRETED:
                       Interpreting mans actually compiling the program line by line and generates the machine code.Java interpreter generates machine code that can be directly executed which is platform independent.

ROBUST:
              Java is a robust language as it provides many safeguards to ensure reliable code.It has strict compile time and run time checking for data types.

SECURE:
              No viruses can affect the java program as java ensures that program cannot gain access to memory locations without proper authorization.Java systems not only verify all memory access but also ensures that no viruses are communicated with an applet.

ARCHITECTURE NEUTRAL:(Platform Independent)
                                              We know that,java compiler produce the byte code.The byte code can be executed  on a variety of computers running on different operating system such as window 98/2000,windows NT,Sun Solaris and Mac OS.The another reason is, the size of primitive data types are machine independent.

PORTABILITY:
                       Java programs can run on multiple platforms.hence,only one version of the application needs to be developed and maintained.Java source code files as ASCII text files.Java source files are compiled to byte cod files.Byte code is standardized,machine independent,low level language.These Byte codes are loaded and interpreted at clients machine  by a special program called Java Virtual Machine(JVM).

HIGH PERFORMANCE:
                                    Java performance is impressive for an interpreted  language,mainly due to the use of Intermediate byte code.

MULTITHREAD:
                         Multithreading is the ability of an application to perform multiple tasks at the same time.The synchronization feature eliminated much of the difficulties of dealing with a multithreaded environments unpredictable nature.

DYNAMIC:
                  Maintaining different versions of an application is very easy in Java.Java is capable of dynamically linking in class libraries,methods and objects.Java supports dynamic memory allocation with automatic garbage collection.


JAVA HISTORY

  • Java is a general purpose,object oriented programming language.
  • The fastest growing programming language in the history of computing.
  • Developd by Sun Microsystems of USA in 1991.
  • Originally it is called OAK by James Gosling.
  • Originally designed in 1991 for use in embedded consumer applications.
  • Java team which headed James Gosling developed a web browser called 'Hot Java' to locate and run applet programs on Internet n 1994.
  • OAK was renamed as "Java" in 1995.
  • Redesignd in early 1995 with Internet application capabilities.
  • Introduced in May,1995 and immediately supportd by the Netscape web browswer.
  • Rapidly overtaking c++ in popularity among commercial software developers.
  • Java established itself not only as a leader for internet programming but also as a general purpose ,object-oriented programming language.
  • Java found its home in the heart of the modern programmer.
  • Java is the first programmng language that is not tied to any particular hardware or operating system.
  • Programs dveloped in java can be executed anywhere on any system.
  • Therefore java comes as a revolutionary technology because it has brought in a fundamental shift in how we develop and use programs.

Search This Blog