LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-27-2007, 09:22 PM   #1
JMJ_coder
Member
 
Registered: Apr 2006
Distribution: Fedora
Posts: 478

Rep: Reputation: 30
Purpose of JAVA


Hello,

What exactly is the purpose of JAVA? What is it supposed to do above and beyond other languages? What type of programming does it excel at and what type of programming does it struggle at?

And this might be a stupid question, but is JAVA an interpreted or a compiled language?

I am really juggling whether to take the course that teaches JAVA or not and am trying to gauge what benefit if any (other than the benefit of just learning another language and programming style) it would be for me to learn JAVA.
 
Old 09-28-2007, 12:42 AM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
It's probably easiest to have a look at wikipedia's java page, they give plenty of general info...
 
Old 09-28-2007, 01:14 AM   #3
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by JMJ_coder View Post
And this might be a stupid question, but is JAVA an interpreted or a compiled language?
Not a stupid question but no simple answer. The distinction between interpreted and compiled languages is fuzzy when applied to Java.

Java is compiled to binary code which is initially interpreted by the Java virtual machine. When the program is run, the JVM selects parts of the java program which are the most used and "compiles" them again, this times to the target platform native code (eg: x86, SPARC, PPC, ...)
 
Old 09-28-2007, 04:32 AM   #4
lazyFoot_theMighty
LQ Newbie
 
Registered: Jul 2006
Location: Canberra Australia
Posts: 28

Rep: Reputation: 16
Thumbs up

From a developers point of view, I feel that the greatest advantages of learning Java would be that your code will be compatible without, or with very little, change on a whole range of platforms. Your code will run on the Java Virtual Machine (JVM) on Linux, Solaris, Windows etc, and the compiled Java byte code will also run without recompiling. Java is also available on many platforms. With the right runtime environment you can write Java programs to run on your mobile phone, on your multimedia desktop or in your web browser.

In my experience Java is rarely used for systems level programming, but instead is more commonly applied to application programming, with several toolkits available for writing GUI applications.

Java 'can' also encourage the development of sound OO programming and design techniques and is often used as a tool for doing this.

If you do this course, you will most likely spend many hours doing assignments sifting through the extremely large API documentation. I've heard lecturers say on multiple occasions that no single person can know all, or even most, of the huge API.
But if you know c and/or any OO language, the Java language will be quite easy to pickup.

Person you = new LQUser("JMJ_coder");
Person me = new LQUser("LazyFoot");
Course javaCourse = new Course("Intro to OO and Java", "comp", 1150);
if (you.takingCourse(javaCourse)){
you.addWish(new Wish("Good luck with it!", me));
}
 
Old 09-28-2007, 06:15 AM   #5
Evil_Trevor
LQ Newbie
 
Registered: Sep 2007
Location: West Cumbria
Distribution: Fedora & Ubuntu
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by JMJ_coder View Post
Hello,

What exactly is the purpose of JAVA? What is it supposed to do above and beyond other languages? What type of programming does it excel at and what type of programming does it struggle at?
Java is a development of the 'c' based languages which is intended to be a High level application language where the produced code is platform independent. Java is a good language for gui based applications, middleware and any project where you are targeting different platforms. Java is a poor choice for system level software (Operating systems, device drivers, back end servers). Java is ok for games software. Java excels at network programming and large business projects because of the large 'framework' available.

Quote:
And this might be a stupid question, but is JAVA an interpreted or a compiled language?
Java is compiled into Java Byte Code which is either interpreted or compiled down to machine level at runtime (Just in time or JIT compiler) in exactly the same way .net languages used by microsoft compile down to 'CIL' code. Java can be compiled directly to machine code on linux using the GCJ compiler. There are several Java implementations available but most people go with SUN's version.

Quote:
I am really juggling whether to take the course that teaches JAVA or not and am trying to gauge what benefit if any (other than the benefit of just learning another language and programming style) it would be for me to learn JAVA.
I would recommend it if you are not already familiar with C-sharp or .net Visual basic, Java is very similar to C-Sharp and both are developments of C++. I would also recommend it if you wish to learn or study modern software design, Object Oriented programming or UML.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
what is the purpose of havp? roncasa Linux - Newbie 4 07-06-2007 03:07 PM
purpose of /etc/radiusclient danieldinu Slackware 2 10-27-2006 09:43 AM
purpose of Java Console in Firefox? microsoft/linux General 1 10-04-2005 07:57 AM
What is the purpose of LiveCDs? john_walsh54 Linux - Newbie 4 04-05-2005 12:12 AM
Purpose of some directories Menestrel Linux - Newbie 2 01-08-2005 05:47 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration