Results 1 to 2 of 2
  1. #1
    Webstorms is offline Member
    Join Date
    Sep 2011
    Rep Power

    Default Noob + Java = Questions;

    Hello Forum,

    I'm new to Java and OOP. I've got some questions (probably intuitive for you guys).

    My first question is, why do I have to import classes? Is there a specific reason why Java doesn't do this automatically, maybe because compiling would take longer?

    Numeric data types consist out of int, double, float... why isn't there just one numeric data type, that would except the values of all types? To safe space?

    I've purchased a book called "Learning Java, O'Reilly". They state, that a programming language can be split into three categories: Speed, security and probability. What do they mean with this?

    When speaking about a dynamic language, what is meant by this?

    I've installed Eclipse as the IDE I will be using for Java on my Mac OS X. When creating a new project, why doesn't it automatically create a main class?

    I've got so many questions, I would really like to understad Java, so I can create stable programs with it. Thanks. :)

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Voorschoten, the Netherlands
    Blog Entries
    Rep Power

    Default Re: Noob + Java = Questions;

    1) Suppose you and I both create a class Foo, each in its own package, say mypackage.Foo and yourpackage.Foo; which class is the compiler to use when it has to compile a class that uses a class Foo?

    2) Efficiency, both space and speedwise;

    3) I think you mean paotability here, not probability; Java can be quite fast, thanks to its JIT compilation (to raw macine code) and it can be made secure by use of a SecurityManager that forbids a program to execute potentially unsafe operations and Java is portable in a way that you only have to "compiler once and run anywhere".

    4) This also is a wide concept and I don't know what you really mean by this.

    5) A project (a bunch of classes) can have several classes with a 'main' class or none. What is Eclipse (or any other ide) supposed to create?

    kind regards,

    Last edited by JosAH; 09-24-2011 at 03:50 PM.
    Build a wall around Donald Trump; I'll pay for it.

Similar Threads

  1. Databse noob - Java SQL questions
    By Onra in forum New To Java
    Replies: 0
    Last Post: 11-27-2010, 02:47 PM
  2. Replies: 8
    Last Post: 06-30-2010, 02:30 AM
  3. Help im a noob.. a super noob on java..
    By critdevil in forum New To Java
    Replies: 12
    Last Post: 03-07-2009, 03:17 AM
  4. Hello, Java Noob
    By furry in forum Introductions
    Replies: 0
    Last Post: 10-07-2008, 07:39 PM
  5. Ah! Help a Java Noob
    By Snejana in forum New To Java
    Replies: 4
    Last Post: 01-24-2008, 03:52 AM

Tags for this Thread

Posting Permissions

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