Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Help with a few short Java exam questions.

  1. #1
    Member
    Join Date
    Dec 2013
    Posts
    31
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Help with a few short Java exam questions.




    This question has confused me because "Errors" are capitalised and I'm not sure what they mean.

    To me this question is false. Sockets can be used to transfers file over a network.


    I can't see why this wouldn't work. The code looks fine to me.

    I don't think this is true unless you're using the mouseEntered() or mouseExited() method. But again, I'm not sure.

    I think this is true, I don't know what else could have listeners.


    They're only worth a few marks each so the answer is only suppose to be a line or two. They are all true or false questions that require an explanation.

    If you can help on any of them, it'll be greatly appreciated!

    Thanks.


  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: Help with a few short Java exam questions.

    We aren't going to do your homework for you.

    Instead of simply posting a screenshot (really?) of your homework, why don't you tell us what you think the answer to each is?
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    Forum VIP
    Join Date
    Jul 2010
    Posts
    1,676
    Thanks
    25
    Thanked 329 Times in 305 Posts

    Default Re: Help with a few short Java exam questions.

    Some of these questions have some issues with them.
    #12: it is a bit unclear what they are referring to here. I'm not sure if there is such a thing as a "runtime error" ("runtime exceptions" are certainly a thing).
    The only thing wrong with #25 is that the author forgot to close the parentheses, which I don't think is important to the question.
    As for #24, consider that when you move your mouse over a JButton, the button state changes. What do you think causes that state change?
    #16: given the other mistakes the author made, you might be correct that the intention is for this to be true, but you can create your own listeners and attach them to any random objects you create.
    NOTE TO NEW PEOPLE LOOKING FOR HELP ON FORUM:

    When asking for help, please follow these guidelines to receive better and more prompt help:
    1. Put your code in Java Tags. To do this, put [highlight=java] before your code and [/highlight] after your code.
    2. Give full details of errors and provide us with as much information about the situation as possible.
    3. Give us an example of what the output should look like when done correctly.

    Join the Airline Management Simulation Game to manage your own airline against other users in a virtual recreation of the United States Airline Industry. For more details, visit: http://airlinegame.orgfree.com/

Similar Threads

  1. Replies: 4
    Last Post: March 6th, 2014, 05:14 PM
  2. java programming exam
    By JamesFlowers14 in forum What's Wrong With My Code?
    Replies: 3
    Last Post: December 9th, 2012, 12:20 AM
  3. Java exam paper
    By javanoobie in forum Java Theory & Questions
    Replies: 0
    Last Post: May 3rd, 2012, 12:24 PM
  4. 50 SCJP Mock Exam Questions with Answers
    By JavaPF in forum The Cafe
    Replies: 3
    Last Post: July 6th, 2010, 11:10 AM
  5. Short java project
    By derky in forum Paid Java Projects
    Replies: 3
    Last Post: October 28th, 2009, 09:48 PM