LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-03-2003, 04:53 PM   #1
Jose Muņiz
Member
 
Registered: Jul 2003
Location: Mexico City
Distribution: Slackware 9.1, SuSE 9.1
Posts: 248

Rep: Reputation: 32
Creating drivers with Java


I've been studying Java for some time after a one - year focus on C. I've found it a gratifying experience, basically. However, I am deeply concerned that the lack of pointers can be a serious limitation in the creation of more complex programs such as drivers or even an Operating System.

Whereas I'm aware that I could not create such programs at the moment, I don't think it would be appropriate to learn a language with which I will have problems in a couple of years.

Am I interpreting the lack of pointers wrong? If not, is there a solution or anything that can be done?

Thank you for reading this message
 
Old 10-03-2003, 06:03 PM   #2
coolman0stress
Member
 
Registered: Jun 2003
Location: Toronto, Ontario, Canada
Posts: 288

Rep: Reputation: 30
Pointers (through references) are behind everything you do in Java.

You also need to realize that not every language is good for everything. You can do one thing in one language but for something else you need to find a better tool.

Java was not designed for a lot of that low level manipulation, infact they wanted to avoid it because of all the little annoying tidbits and problems that can occur. The idea is to make Java *safe* to use.

If you want to do low level stuff, then Java is definatly not your best pick. It has it's own niche and it ain't this stuff...
 
Old 10-03-2003, 06:31 PM   #3
jleejj
LQ Newbie
 
Registered: Jan 2001
Distribution: RedHat 9.0
Posts: 7

Rep: Reputation: 0
Java is definitely not the language for writing device drivers or operating systems. Java is an interpretted langauge (kind of) designed to run inside of a virtual machine. It does not have direct access to hardware (except for the access provided by the virtual machine).

This makes Java ideal for applets (where you want to run code from the internet inside of a protected "sandbox" so that it can't damage your machine) and most kinds of user applications where you want a language that lets you avoid some of the messy details and yet retain most of the power of languages such as C++. Java has an extremely intelligently designed user interface creation API ( Swing ) for this sort of thing. And of course, the same compiled Java runs on Windows, Mac, and *NIX without change.

Java programming is an excellent skill to have, and it can make your life a lot easier if the project fits it, but it won't be replacing C++ and wasn't intended to do so.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
trouble creating symlink for java/mozilla MightyKC Linux - Software 1 03-03-2005 11:40 PM
Creating a shell script to run Java program paultaylor Programming 7 11-12-2004 03:11 PM
creating java plugin for firefox shengchieh Linux - Software 13 10-27-2004 05:17 PM
Java creating a deck of cards djgerbavore Programming 4 10-02-2004 03:57 PM
c++ programmer needs help with creating java media player lostboy Programming 4 03-10-2004 08:46 AM

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

All times are GMT -5. The time now is 12:24 PM.

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