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
|
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.
B.Code:disconnected = true;disconnected = true;
C.Code:disconnected = true; disconnected = true; disconnected = true; disconnected = true; disconnected = true; disconnected = true; disconnected = true;
D. None are more likely then the other.Code:disconnected = true;
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
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
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.)
#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.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |