Results 1 to 4 of 4
Like Tree1Likes
  • 1 Post By gimbal2

Thread: Simple Application Coding

  1. #1
    Syed Rizvi is offline Member
    Join Date
    Jul 2013
    Posts
    8
    Rep Power
    0

    Question Simple Application Coding

    I have been given two tasks but i am not much into Java any helps will be appreciated thanks. I have about 2 days time to complete it.

    TASK 1:
    Create four new classes for each real-world object. For each new class that you have created, create an interface that defines its behavior, then require your class to implement it. Omit one or two methods and try compiling. What does the error look like?

    TASK 2:
    Create a small program that defines some fields. Try creating some illegal field names and see what kind of error the compiler produces.
    In the program you created, try leaving the fields uninitialized and print out their values. Try the same with a local variable and see what kind of compiler errors you can produce.

  2. #2
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    3,781
    Rep Power
    5

    Default Re: Simple Application Coding

    I see questions like this all of the time and I keep wondering if the instructors are not covering the material required to complete the assignments or explaining them properly. I assume you know what a class is. Has the instructor gone over interfaces? What about variable scope including instance fields, static fields, and local variables? Exactly what is it you need help with?

    Regards,
    Jim
    Last edited by jim829; 07-30-2013 at 12:36 AM.
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  3. #3
    Syed Rizvi is offline Member
    Join Date
    Jul 2013
    Posts
    8
    Rep Power
    0

    Default Re: Simple Application Coding

    Bro the thing is our instructor doesnt explain it properly he just says do research and work on the project. That were the only instructions i got now i am fed up of searching and all that i dont know that basics i can create class but the thing is he says to create four will it be the same program or separate for everyone.

  4. #4
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,098
    Rep Power
    6

    Default Re: Simple Application Coding

    You must have a book. Read it. Learn something. You can't do this without first studying.
    DarrylBurke likes this.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

Similar Threads

  1. [NEED HELP]coding a simple calculator
    By techy in forum New To Java
    Replies: 1
    Last Post: 05-24-2013, 12:19 PM
  2. Simple Chat Server socket coding issues
    By TheGadgetCat in forum Networking
    Replies: 14
    Last Post: 12-17-2010, 12:54 PM
  3. New simple application using a simple database
    By webbusiness23 in forum New To Java
    Replies: 9
    Last Post: 08-03-2009, 02:55 AM
  4. Help with really simple coding
    By tigertomas in forum New To Java
    Replies: 10
    Last Post: 01-24-2009, 04:47 AM
  5. JSP simple application
    By Ms.Ranjan in forum JavaServer Pages (JSP) and JSTL
    Replies: 4
    Last Post: 10-04-2008, 10:08 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
  •