Thursday, July 9, 2009

What is java?what is the difference between java & C language?

plz tell me.............................? n how can i learn java in the easiest way? thank u

What is java?what is the difference between java %26amp; C language?
java is an objecft oriented programming language, while C is not. To learn java, you can pick up a Dietel and Dietel book or just simply do a good search for java programming tutorials. Start with hello world and work your way from there. :)
Reply:With C, arguably the fastest running high-level language, you have to configure the structure of the tools you want to use. Java, on the other hand, you can think of as the template way of doing things. Java requires learning the java library (API). It is a fun language with lots of pre-built code. Whatever language I tried to learn, making a game such as a bouncing ball helped to make things feel like objects.
Reply:There are volumes and entire libraries of books written on or5 about that subject.


I like what Matzz said:


Yukihiro “matz” Matsumoto


Initially, Matz looked at other languages to find an ideal syntax. Recalling his search, he said, “I wanted a scripting language that was more powerful than Perl, and more object-oriented than Python3.”





In Ruby, everything is an object. Every bit of information and code can be given their own properties and actions. Object-oriented programming calls properties by the name instance variables and actions are known as methods. Ruby’s pure object-oriented approach is most commonly demonstrated by a bit of code which applies an action to a number.


Ruby has a wealth of other features, among which are the following:





* Ruby has exception handling features, like Java or Python, to make it easy to handle errors.





* Ruby features a true mark-and-sweep garbage collector for all Ruby objects. No need to maintain reference counts in extension libraries. As Matz says, “This is better for your health.”





* Writing C extensions in Ruby is easier than in Perl or Python, with a very elegant API for calling Ruby from C. This includes calls for embedding Ruby in software, for use as a scripting language. A SWIG interface is also available.





* Ruby can load extension libraries dynamically if an OS allows.





* Ruby features OS independent threading. Thus, for all platforms on which Ruby runs, you also have multithreading, regardless of if the OS supports it or not, even on MS-DOS!





* Ruby is highly portable: it is developed mostly on GNU/Linux, but works on many types of UNIX, Mac OS X, Windows 95/98/Me/NT/2000/XP, DOS, BeOS, OS/2, etc.





References





1 Matz, speaking on the Ruby-Talk mailing list, May 12th, 2000.





2 See the Ruby on Rails home page for more.





3 Matz, in An Interview with the Creator of Ruby, Nov. 29th, 2001.





4 Matz, in Blocks and Closures in Ruby, December 22nd, 2003.


http://www.ruby-lang.org/en/about/


Ok so that is not Java-v-C, it is the point of focus.


Do not focus on the difference, find the bridges that unify.


http://java.sun.com/docs/books/tutorial/


That is java, it is a fun oriented language.


http://www.eskimo.com/~scs/cclass/cclass...


That is a good writeup/lecture on C


Learn what you want to learn.


I trust Linux.

ovary

No comments:

Post a Comment