Results 1 to 2 of 2
  1. #1
    barney is offline Member
    Join Date
    Jul 2007
    Posts
    40
    Rep Power
    0

    Default Newbie in applet, Help me

    Hi, I am a bit confused about applet versus application. Can an application be run online or is it strictly offline? An applet can be run offline.

    The reason I am asking this is because I want to be able to access a file and a database and I think I remember someone saying that you can only do those things in an application.

    Thanks.

  2. #2
    lenny is offline Member
    Join Date
    Jul 2007
    Posts
    40
    Rep Power
    0

    Default

    An applet is a program run on the browser. It's seriously handicapped for good, in the sense you cannot read or write files or access memory on your machine. Maybe I shouldn't say it's handicapped cause an applet does what it's designed to do pretty well, though I hate it being sluggish.

    Now that you say you want to connect to a database, that could be done using an application. So how does an application differ from an applet? An application can do far more than an applet could. First off, it can run as a separate entity and does not require a browser. Of course, it does require a JVM. Regarding the online-offline query, yes, an applet can be run only offline. i.e., it's downloaded to your machine and run. A java application can connect to computers, connect to databases, read/write files (in fact, the best thing I like about java is its variety of stream objects some of which you can use to manipulate files), etc. To connect to a database you can use JDBC.

Similar Threads

  1. newbie needs help...
    By vicky08 in forum New To Java
    Replies: 2
    Last Post: 03-31-2008, 05:26 PM
  2. Newbie
    By CSnoob87 in forum Introductions
    Replies: 2
    Last Post: 02-18-2008, 09:49 AM
  3. Newbie reporting
    By nelsaez in forum Introductions
    Replies: 0
    Last Post: 11-05-2007, 07:39 PM
  4. Help, java newbie
    By baltimore in forum New To Java
    Replies: 1
    Last Post: 08-07-2007, 01:56 AM
  5. newbie: the app is loaded but i can't see it
    By tamayo in forum New To Java
    Replies: 1
    Last Post: 07-21-2007, 09:14 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •