Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Creation of Java

 
java tech
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends
I always wondered what is the need of java when we have languages like C through which we can program most efficiently and a language like C++ which implements OOPs principle which help organize complex program through the use of inheritance, encapsulation and polymorphism .When I tried to find out the answer to my query I realized it is the �Complexity� that we need another language java for programming.
Java was first conceived by James Gosling, Patrick Naughton, Chris Warth, Ed frank and Mike Sheridan at Sun Microsystems in 1991.The language was initially called �OAK� but was renamed as JAVA.

There is a vast amount of similarity between C++ and Java. First, Java was designed ,tested and refined by real working programmers. It is a programmer�s language. Second, Java is cohesive and logically consistent. Third it gives programmer full control. Its because of similarities between Java and C++, people mostly think of Java as simply the Internet version of C++. But it is a big Myth. Java is neither upwardly nor downwardly compatible with C++.

The common thought is that the original impetus for java is internet, instead the primary motivation was the need for a platform-independent language that could be used to create software to be embedded in various consumer electronics devices, such as microwave ovens and remote controls. Many different type of CPUs are used as controllers.

The trouble with C and C++ is that they are designed to be compiled for a specific target .Although it is possible to compile a C++ program for any type of CPU but we require a full C++ compiler targeted for CPU. The major problem that comes in is that it is expensive and time consuming to create. A easier and cost efficient solution was needed, this effort led to creation of Java.

The second force was World Wide Web. Java can be used to create two types of programs Application and Applets.
Application is a program that runs on an computer under the Operating System of our computer. Applet is a application designed to be transmitted over the Internet and executed by a java compatible web browser. It is a program that can react to user input and dynamically change. Two fundamental problem associated with this is Security and Portability. Java answers to both these concerns by providing a firewall between a networked application and over computer.

To overcome the problem of portability we translate java in bytecode. Byte code is highly optimized set of instruction designed to be executer by java runtime system Java Virtual Machine. Once run-time Package exists for a given system, any java program can run on it. Sun supplies Just In Time (JIT) computer for bytecode. It compiles bytecode into executable code in real time on demand basis that is it compiles when its needed. This yields significant performance boost.
The initial release of Java was nothing short of revolutionary, but it did not mark the end of Java�s era of rapid innovation. It is just the beginning.
 
Steve Morrow
Ranch Hand
Posts: 657
Clojure Spring VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okay...
 
Manuel Moons
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd say. Yes to that question! (-;
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi "java tech",

welcome at the Ranch!

You might have missed that we have a naming policy we care very much about. More specifically, we like everyone to be known by a reasonable first and last name. Please adjust your display name accordingly.

Thanks, and have fun!
 
Hentay Duke
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think I've stumbled onto the wrong ranch. First a C++ question, and now a history lesson!
 
Raymond Villeno
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
IQ + C++ = JAVA

 
ankur rathi
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Hentay Duke:
I think I've stumbled onto the wrong ranch. First a C++ question, and now a history lesson!


But it was good.
 
Jayesh Lalwani
Ranch Hand
Posts: 502
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by java tech:
Hi friends


The trouble with C and C++ is that they are designed to be compiled for a specific target .Although it is possible to compile a C++ program for any type of CPU but we require a full C++ compiler targeted for CPU. The major problem that comes in is that it is expensive and time consuming to create. A easier and cost efficient solution was needed, this effort led to creation of Java.


But, compared to creating a compiler, isn't it more time consuming and expensive to implement a JVM for a new platform??
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by rathi ji:

But it was good.


For some limiting values of "good" as correctness and quality tend toward zero.
 
Rick O'Shay
Ranch Hand
Posts: 531
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Someone needs their own website.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic