Comet Softwares - Help Center


Embassies & Consulates(Chennai)
Country Address Phone
Australia(Honorary) 114-117,Kothari Buiding,M.G.Salai,Chennai. Ph:28278739,28276036
Belgium(Honorary) 88,Anna Salai,Guindy,Chennai. Ph:22352336
Canada(Honarary) 3rd Floor,Dhun Building,827 Anna Salai,Chennai. Ph:28529818
Czechoslovakia(Honorary) 64,Thirumalaipillai salai,T.Nagar,Chennai. Ph:28226105
Denmark(Honarary) 9,Cathedral Road,Chennai. Ph:28118141
Finland(Honorary) 742,Anna salai,Chennai. Ph:28523622
Germany 49,Ethiraj Salai,Chennai. Ph:28210810,28210830.
Hungary(Honorary) 28,Rajaji Salai,Chennai. Ph:25231264 Fax:25225205
Indonesia(Honorary) C/O Eagle Flask Industries Ltd, Thir-Vi-Ka Industrial Estates,Guindy,Chennai. Ph:22341095
Italy(Honorary) 19,Rajaji Salai,Chennai. Ph:25341110
Japan 12/1,Cenotaph Road,Chennai. Ph:24323861,62,63
Korean(Honorary) 19,3rd Floor,Khadar Nawas Khan Road,Chennai. Ph:28237307
Malaysia 6,SriRam Nagar,Alwarpet,Chennai. Ph:2434048
Mauritius(Honorary) 94/95,Block 4,R.R.Chambers,Thiru-Vi-Ka Industrial Estates,Guindy,Chennai. Ph:22346693,22347051
New Zealand(Honorary) "Maithri",32 Cathedral Road,Chennai. Ph:28112472,73
Norway(Honorary) 44/45,Rajaji Salai,Chennai. Ph:25232961,82,83
Singapore 3,8th street,Dr.Radakrishnan Salai,Mylapore,Chennai. Ph:28471591,28471541
Russia 14,Sathome High Road,Chennai. Ph:24982330,2320
Spain(Honorary) 8/2,Nimmo Road,Santhome,Chennai. Ph:24942008
Sri Lanka Deputy High Commission,196,TTK Road,Alwarpet,Chennai. Ph:24987896
Sweden(Honorary) 6,Cathedral Road,Chennai. Ph:28112232
Switzerland(Honorary) 224,TTK Road,Alwarpet,Chennai. Ph:24353886,24332701
United Kingdom British Deputy High Commission,20,Anderson Road,Chennai. Ph:52192151,52192308
United States Of America 220,Anna Salai,Chennai. Ph:28112000
Air Lines(Offices in Chennai)
Name Address Phone
Air India 19,Raja Annamalai Building,Rukmani Laksmipathi Road,Egmore,Chennai. 28554477
Indian Airlines - 28555200
Sahara 28272027,28271961,28263661
Jet Airways 28414141,26202622,33,44
Air Mauritius 6,Arthi Chambers,Ground Floor,189 Anna Salai,Chennai 28515641
British Airways Raheaja Towers,8th Floor,Sigma Wing,177 Anna Salai Chennai 28604680(6 lines) 28603123(4 lines)
Emigrates Riaz Garden,1 C/D 1st Floor,12 High Road,Chennai&13Kodambakam 28223700(6 lines)
Lufthanza German Airlines 167,Anna Salai,Chennai 28525095,51973272,3282
Malasian Airlines system Karumuthu Center,498,Anna salai Nandanam,Chennai 52191919,52199999
Oman Airlines 20/22,College Road,Oxford Building,Nungambakkam,Chennai 28211212
Sri Lankan Nagabrhma Towers,76 Cathedral Road,Chennai 28215348,54,28111147
Saudi Arabian Airlines 7,Century Plaza,560-562,Anna Salai,Chennai 24346157,24349666,24337309,10
Singapore Airlines 108,Dr Radakrishnan Salai,Chennai 28472883,28473995,28472408,28473982


Taken from :Java By Example Clayton Walnum

Anyone who's had anything to do with computers in the '90s knows that the Internet is all the rage. The immense growth of this global computer network has not only created a handy way to download files and information but has also sparked major controversies over freedom of speech, copyright law, and computer security.Hardly a day goes by without the Internet making the news.

But not all Internet activity is steeped in controversy. One of the more positive Internet newsmakers has been the release of Java, a computer programming language that enables folks like you and me to easily create applications that can be used across the Internet without worrying about platform compatibility or network security. The two types of Java applications-applets for use within World Wide Web pages and stand-alone Java applications-areguaranteed to do more to liven up the World Wide Web than even the most heated controversy.

Java, however, was conceived long before its suitability for the Internet was noted and taken advantage of. You may be surprised to learn that Java was developed for a very different use. In fact, "Java" isn't even the language's original name.In this chapter, you'll get a quick look at Java's history, as well as learn why Java is an excellent tool for creating Internet applications.

The Java Story

Back in 1990, a gentleman by the name of James Gosling was given the task of creating programs to control consumer electronics.Gosling and his team of people at Sun Microsystems started designing their software using C++, the language that most programmers were praising as the next big thing because of its object-oriented nature. Gosling, however, quickly found that C++ was not suitable for the projects he and his team had in mind. They ran into trouble with complicated aspects of C++ such as multiple inheritance of classes and with program bugs such as memory leaks. Gosling soon decided that he was going to have to come up with his own, simplified computer language that would avoid all the problems he had with C++.

Although Gosling didn't care for the complexity of languages such as C++, he did like the basic syntax and object-oriented features of the language. So when he sat down to design his new language, he used C++ as its model, stripping away all the features of C++ that made that language difficult to use with his consumer-electronics projects. When Gosling completed his language-design project, he had a new programming language that he named Oak. (The story goes that the name Oak came to Gosling as he gazed out his office window at an oak tree.)

Oak was first used in something called the Green project, wherein the development team attempted to design a control system for use in the home. This control system would enable the user to manipulate a list of devices, including TVs, VCRs, lights, and telephones, all from a hand-held computer called *7 (Star Seven). The *7 system featured a touch-sensitive screen that the owner used to select and control the devices supported by the control.

NOTE
The *7 screen display featured a number of animated figures, of which Duke (now the little guy considered to be the Java mascot) was one. Once you get involved with Java, you're liable to see a lot of Duke, who pops up on the Sun Microsystems Web site , and who is featured in some of Sun's sample Java applets.

The next step for Oak was the video-on-demand (VOD) project, in which the language was used as the basis for software that controlled an interactive television system. Although neither *7 nor the VOD project led to actual products, they gave Oak a chance to develop and mature. By the time Sun discovered that the name "Oak" was already claimed and they changed the name to Java, they had a powerful, yet simple, language on their hands.

More importantly, Java was a platform-neutral language, which meant that programs developed with Java could run on any computer system with no changes. This platform independence was attained by using a special format for compiled Java programs. This file format, called byte-code, could be read and executed by any computer system that has a Java interpreter. The Java interpreter, of course, must be written specially for the system on which it will run.

In 1993, after the World Wide Web had transformed the text-based Internet into a graphics-rich environment, the Java team realized that the language they had developed would be perfect for Web programming. The team came up with the concept of Web applets, small programs that could be included in Web pages, and even went so far as to create a complete Web browser (now called HotJava) that demonstrated the language's power.

In the second quarter of 1995, Sun Microsystems officially announced Java. The "new" language was quickly embraced as a powerful tool for developing Internet applications. Netscape Communications, the developer of the popular Netscape Navigator Web browser added support for Java to its new Netscape Navigator 2.0. Other Internet software developers are sure to follow suit, including Microsoft, whose Internet Explorer 3 (currently in beta) offers Java support. After more than five years of development, Java has found its home.

Introducing Java

By now, you may be curious why Java is considered such a powerful tool for Internet development projects. You already know that Java is a simplified version of C++. Anyone who has struggled with learning C++ knows that the key word in the previous sentence is "simplified." C++ added so much to the C language that even professional programmers often have difficulty making the transition.

According to Sun Microsystems, Java is "simple, object-oriented, statically typed, compiled, architecture neutral, multi-threaded, garbage collected, robust, secure, and extensible." That's a mouthful, but this description of Java probably doesn't help you understand the language much. The following list of Java's attributes, however, should clear out some of the cobwebs:

As you can tell from the preceding list of features, a great deal of thought went into creating a language that would be fairly easy to use but still provide the most powerful features of a modern language like C++. Thanks to features such as automatic garbage collection, programmers can spend more time developing their programs rather than wasting valuable man-hours hunting for hard-to-find memory-allocation bugs. However, features such as Java's object-oriented nature, as well as its ability to handle multiple threads of execution, ensure that the language is both up-to-date and powerful.

Java Programs

As I mentioned previously. Java can be used to create two types of programs: applets and stand-alone applications. An Applet is simply a part of a Web page, just as an image or a line of text can be. Just as a browser takes care of displaying an image referenced in an HTML document, a Java-enabled browser locates and runs an Applet . When your Java-capable Web browser loads the HTML document, the Java applet is also loaded and executed.

Using applets, you can do everything from adding animated graphics to your Web pages to creating complete games and utilities that can be executed over the Internet. Some applets that have already been created with Java include Bar Chart, which embeds a configurable bar chart in an HTML document; Crossword Puzzle, which enables users to solve a crossword puzzle on the Web; and LED Sign, which presents a scrolling, computerized message to viewers of the Web page within which the applet is embedded.

Applets are small programs that are run from within an HTML document.

Although most Java programmers are excited by the ability to create applets, Java can also be used to create stand-alone applications-that is, applications that don't need to be embedded in an HTML document. The most well-known application is the HotJava Web browser itself. This basic browser is completely written in the Java language, showing how Java handles not only normal programming tasks such as looping and evaluating mathematical expressions, but also how it can handle the complexities of telecommunications programming.

The HotJava Web browser is written entirely in the Java programming language.

The Java Developer's Kit

Java is actually more than a computer language; it's also a programming environment that includes a complete set of programming tools. These tools include a compiler, an interpreter, a debugger, a disassembler, a profiler, and more. To create a Java program, you first use a text editor to create the source-code file. You write the source code, of course, in the Java language. After completing the source code, which is always saved with a .java file extension, you compile the program into its byte-code format, the file for which has the .class file extension. It is the .class file that the interpreter loads and executes. Because the byte-code files are fully portable between operating systems, they can be executed on any system that has a Java interpreter.

NOTE
Note that many of Java's tools require long file names, especially the long extensions .java and .class. Both Windows 95 and Windows NT allow these long file names, even under DOS sessions.

After compiling and running a Java program, you may discover that the source code needs modification. The Java debugger can help you find your errors, whereas the Java profiler provides handy information about your program. If you run into a compiled Java program that you'd like to see in source-code form, the Java disassembler will do the translation for you. Java also includes a program that creates the files you need to take advantage of native methods (functions written in another language, such as C++). There's even a program that can create HTML documents from Java source-code files. Although all the development tools are DOS applications-that is, they don't run under Windows-they provide a complete environment for creating and managing Java projects.
Why Is Java Interesting?
When it was introduced in late 1995, Java took the Internet by storm.Java 1.1, released in early 1997, nearly doubles the speed of the Java interpreter and includes many important new features. With the addition of APIs to support database access, remote objects, an object component model, internationalization, printing, encryption, digital signatures, and many other technologies, Java is now poised to take the rest of the programming world by storm.Despite all the hype surrounding Java and the new features of Java 1.1, it's important to remember that at its core, Java is just a programming language, like many others, and its APIs are just class libraries, like those of other languages. What is interesting about Java, and thus the source of much of the hype, is that it has a number of important features that make it ideally suited for programming in the heavily networked, heterogenous world of the late 1990s.
Why Is Java Interesting?
In one of their early papers about the language, Sun described Java as follows:

Java: A simple, object-oriented, distributed, interpreted, robust, secure, architecture neutral, portable, high-performance, multithreaded, and dynamic language.

Sun acknowledges that this is quite a string of buzzwords, but the fact is that, for the most part, they aptly describe the language. In order to understand why Java is so interesting, let's take a look at the language features behind the buzzwords. Object-Oriented

Java is an object-oriented programming language. As a programmer, this means that you focus on the data in your application and methods that manipulate that data, rather than thinking strictly in terms of procedures. If you're accustomed to procedure-based programming in C, you may find that you need to change how you design your programs when you use Java. Once you see how powerful this new paradigm is, however, you'll quickly adjust to it.

In an object-oriented system, a class is a collection of data and methods that operate on that data. Taken together, the data and methods describe the state and behavior of an object. Classes are arranged in a hierarchy, so that a subclass can inherit behavior from its superclass. A class hierarchy always has a root class; this is a class with very general behavior.

Java comes with an extensive set of classes, arranged in packages, that you can use in your programs. For example, Java provides classes that create graphical user interface components (the java.awt package), classes that handle input and output (the java.io package), and classes that support networking functionality (the java.net package). The Object class (in the java.lang package) serves as the root of the Java class hierarchy.

Unlike C++, Java was designed to be object-oriented from the ground up. Most things in Java are objects; the primitive numeric, character, and boolean types are the only exceptions. Strings are represented by objects in Java, as are other important language constructs like threads. A class is the basic unit of compilation and of execution in Java; all Java programs are classes.

While Java is designed to look like C++, you'll find that Java removes many of the complexities of that language. If you are a C++ programmer, you'll want to study the object-oriented constructs in Java carefully. Although the syntax is often similar to C++, the behavior is not nearly so analogous. For a complete description of the object-oriented features of Java, see Interpreted

Java is an an interpreted language: the Java compiler generates byte-codes for the Java Virtual Machine (JVM), rather than native machine code. To actually run a Java program, you use the Java interpreter to execute the compiled byte-codes. Because Java byte-codes are platform-independent, Java programs can run on any platform that the JVM (the interpreter and run-time system) has been ported to.

In an interpreted environment, the standard "link" phase of program development pretty much vanishes. If Java has a link phase at all, it is only the process of loading new classes into the environment, which is an incremental, lightweight process that occurs at run-time. This is in contrast with the slower and more cumbersome compile-link-run cycle of languages like C and C++.

Architecture Neutral and Portable

Because Java programs are compiled to an architecture neutral byte-code format, a Java application can run on any system, as long as that system implements the Java Virtual Machine. This is a particularly important for applications distributed over the Internet or other heterogenous networks. But the architecture neutral approach is useful beyond the scope of network-based applications. As an application developer in today's software market, you probably want to develop versions of your application that can run on PCs, Macs, and UNIX workstations. With multiple flavors of UNIX, Windows 95, and Windows NT on the PC, and the new PowerPC Macintosh, it is becoming increasingly difficult to produce software for all of the possible platforms. If you write your application in Java, however, it can run on all platforms.

The fact that Java is interpreted and defines a standard, architecture neutral, byte-code format is one big part of being portable. But Java goes even further, by making sure that there are no "implementation-dependent" aspects of the language specification. For example, Java explicitly specifies the size of each of the primitive data types, as well as its arithmetic behavior. This differs from C, for example, in which an int type can be 16, 32, or 64 bits long depending on the platform.

While it is technically possible to write non-portable programs in Java, it is relatively easy to avoid the few platform-dependencies that are exposed by the Java API and write truly portable or "pure" Java programs. Sun's new "100% Pure Java" program helps developers ensure (and certify) that their code is portable. Programmers need only to make simple efforts to avoid non-portable pitfalls in order to live up to Sun's trademarked motto "Write Once, Run Anywhere."

Dynamic and Distributed

Java is a dynamic language. Any Java class can be loaded into a running Java interpreter at any time. These dynamically loaded classes can then be dynamically instantiated. Native code libraries can also be dynamically loaded. Classes in Java are represented by the Class class; you can dynamically obtain information about a class at run-time.

Java is also called a distributed language. This means, simply, that it provides a lot of high-level support for networking. For example, the URL class and related classes in the java.net package make it almost as easy to read a remote file or resource as it is to read a local file. Similarly, the Remote Method In