Thread: Server Java Knowledge test.

Results 1 to 6 of 6
  1. #1 Server Java Knowledge test. 
    Banned

    Join Date
    Jul 2008
    Age
    28
    Posts
    5,827
    Thanks given
    1,301
    Thanks received
    197
    Rep Power
    0
    5 questions. Post your results and ffs don't lie..


    1. Which of the following is most likely to force a player to disconenct?

    A.
    Code:
    disconnected = true;disconnected = true;
    B.
    Code:
    disconnected = true;
    disconnected = true;
    disconnected = true;
    disconnected = true;
    disconnected = true;
    disconnected = true;
    disconnected = true;
    C.
    Code:
    disconnected = true;
    D. None are more likely then the other.



    2. Splitting client.java up into smaller classes, that are still all created on login speeds up the server.

    A. True
    B. False




    3. Using hash maps from packet processing is faster or more efficient than using arrays.

    A. True
    B. False




    4. Thread per client is bad when using normal I/O.

    A. True
    B. False




    5. What is the biggest use of memory in a winterlove server?

    A. Client.java
    B. Player.java
    C. byte[] Buffer in client.java
    D. byte[] Buffer in stream.java

    >
    >>
    >>>
    >>>>
    >>>>>
    >>>>>>
    >>>>>
    >>>>
    >>>
    >>
    >
    >
    >>
    >>>
    >>>>
    >>>>>
    >>>>>>
    >>>>>
    >>>>
    >>>
    >>
    >
    >
    >>
    >>>
    >>>>
    >>>>>
    >>>>>>
    >>>>>
    >>>>
    >>>
    >>
    >
    >
    >>
    >>>
    >>>>
    >>>>>
    >>>>>>
    >>>>>
    >>>>
    >>>
    >>
    >
    >
    >>
    >>>
    >>>>
    >>>>>
    >>>>>>
    >>>>>
    >>>>
    >>>
    >>
    >
    >
    >>
    >>>
    >>>>
    >>>>>
    >>>>>>
    >>>>>
    >>>>
    >>>
    >>
    >

    Answers!

    1. D
    2. B
    3. B
    4. B
    5. C


    KThanxBay
     

  2. #2  
    Donator


    Join Date
    Mar 2008
    Posts
    1,945
    Thanks given
    118
    Thanks received
    201
    Rep Power
    2104
    1. B (this will get a player off )
    2. B (Dont matter)
    3. umm dont know personally
    4. Depends how your server is set up
    5. depends on if someone adds in random ints

    Edit: didnt see the answers until i posted

    this is kinda a weird post lol
    Attached image
     

  3. #3  
    Registered Member
    wowfreakjoking's Avatar
    Join Date
    Sep 2007
    Posts
    322
    Thanks given
    0
    Thanks received
    3
    Rep Power
    231
    1) D
    2) Question doesn't make sense, since when are classes created on login. Yes handling certain parts of the client class is much more efficient.
    3)A
    4)A
    5)A

    Question 6: Why did you post this?

    Fact: This doesn't prove if someone knows java, question 1 for example could mean fucking anything, and different servers use different methods(even though 90% of all servers atm are using devolution and 80% of those are DeltaScape.)
    Did you know?
    - I hate trivia.
     

  4. #4  
    Donator


    Join Date
    Mar 2008
    Posts
    1,945
    Thanks given
    118
    Thanks received
    201
    Rep Power
    2104
    Quote Originally Posted by wowfreakjoking View Post
    1) D
    2) Question doesn't make sense, since when are classes created on login. Yes handling certain parts of the client class is much more efficient.
    3)A
    4)A
    5)A

    Question 6: Why did you post this?

    Fact: This doesn't prove if someone knows java, question 1 for example could mean fucking anything, and different servers use different methods(even though 90% of all servers atm are using devolution and 80% of those are DeltaScape.)
    if you want to go into detail 95% are using devo 7.0 base, 5% are other things
    Attached image
     

  5. #5  
    brb ridin da storm

    blakeman8192's Avatar
    Join Date
    Dec 2012
    Age
    31
    Posts
    2,012
    Thanks given
    818
    Thanks received
    1,361
    Rep Power
    329
    #3 is absolutely true, you are wrong on the answers there.
    #4 there is no real question, as thread-per-client is required with standard IO.

    This is a cool idea, but I think you should re-check your answers.
    rest in peace Qemist, Izzy, Colton, TeChNo PuNk, Impulser, & bootnecklad
     

  6. #6  
    Banned

    Join Date
    Jul 2008
    Age
    28
    Posts
    5,827
    Thanks given
    1,301
    Thanks received
    197
    Rep Power
    0
    Quote Originally Posted by blakeman8192 View Post
    #3 is absolutely true, you are wrong on the answers there.
    #4 there is no real question, as thread-per-client is required with standard IO.

    This is a cool idea, but I think you should re-check your answers.
    Please explain how it is true. Hash maps use f(x) = y, and arrays point directly to the object.

    e.g. this is more efficient,
    packetHandlers[packetType].process(infoz here)

    then
    packetHandlers.get(packetType).process(infoz here)

    in the fact of the math, and that an Integer object is needed.
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

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