Menu
Create
Random
Create Account
Login
0
0
0
Language
Deutsch
Español
Français
Italiano
Nederlands
Polski
Português
Suomi
More...
Search...
Featured Quizzes
All Featured Quizzes
New and Reset
Random
Top Today
Geography
History
User Quizzes
Most Recent
All User-Created
Tags
Highest Rated
Most Taken
Nominated Quizzes
Recent Spotlights
Create Quiz
Create / Edit Quiz
New Click Quiz
New Map Quiz
New Multiple Choice
New Picture Quiz
New Sudden Death
New Text Quiz
New Tile Select
Data and Charts
JetPunk Charts
Recent Charts
Create Chart
Info Pages
Country Population
Interesting Facts
Interesting Quotes
Blogs
Official Blog
User Blogs
Recent User Blogs
Blogs by Tag
Create Blog
Badges and Games
Badges
Word Search
Minigames
About JetPunk
About Us
Contact Us
Change Log
JetPunk Premium
Planting Trees
Site Map
Terms of Service
Message Board
Site Map
Dark Mode
Code COMP90015
Quiz by
LatSwizzle
Profile
Quizzes
Subscribed
Subscribe?
Rate:
Nominate
Nominated
Spotlight
+ Playlist
Last updated: November 1, 2023
You have not attempted this quiz yet.
More quiz info >>
First submitted
November 1, 2023
Times taken
4
Average score
31.9%
Report this quiz
Report
Quiz and answer stats >>
Friends stats >>
Start Quiz
4:00
Give Up?
Enter answer here
0
/ 47 guessed
Time Used
00:00
Best Time
00:00
The quiz is paused. You have
remaining.
Resume
Scoring
You scored
/
=
%
This beats or equals
% of test takers
also scored 100%
The average score is
Your high score is
Your fastest time is
more stats >>
friends stats >>
Keep scrolling down for answers and more stats ...
Retake Quiz
Share Result
Hint
Answer
Create registry
Registry registry = LocateRegistry.createRegistry(port);
Get registry
Registry registry = LocateRegistry.getRegistry(host, port);
Bind RMI object to registry
Registry.bind(“name”, object);
Look up remote object on registry
ObjectClass object = (ObjectClass) registry.lookup(“name”);
RMI interface
public interface InterfaceClass extends Remote{
void method() throws RemoteException;
}end
Implementing interface
class ObjectClass implements InterfaceClass {
@ Override
public void method() throws RemoteException
start
end
}end
Handle an error
Try {
ObjectClass.method();
} catch (RemoteException e){
Handle();
}end
Open server socket
ServerSocket server;
DataOutputStream os;
DataInputStream is;
server = new ServerSocket(port);
Wait for client request
Socket client = server.accept();
Create IO streams for communication
is = new DataInputStream(client.getInputStream());
os = new DataOutputStream(client.getOutputStream());
Perform communication
String line = is.readLine();
Hint
Answer
os.writeBytes("message");
Create socket object for client
client = new Socket( server, port);
Close socket
client.close();
is.close();
os.close();
Handle socket errors
catch(UnknownHostException e){
handle();
}end
catch(IOException e) {
handle();
}end
Extending thread class (MyThread, runThread())
class MyThread extends Thread{
public void run(){
runThread();
}end
}end
Implementing Runnable (MyThread, runThread())
class MyThread implements Runnable{
public void run(){
runThread();
}end
}end
Instantiate and start a thread (one line)
new MyThread().start();
Set Priority of a thread
ThreadName.setPriority(priority)
Your Next Quiz
•
Countries by Borders in 90 Seconds
•
World Map Without 20 Random Countries
•
Languages - Sudden Death
•
Pin US States on a Borderless Map - Sudden Death
Random
Suggested
Comments
No comments yet
Add comment
New and Popular
all
de
en
es
fi
fr
it
nl
pl
pt
Countries of the World Quiz
US States Quiz
Countries of Europe Quiz
Fast Typing A to Z
Countries of the World with an Empty Map
All Country Flags of the World
Fifty US States in One Minute
Random Capital to Country
Pin US States on a Borderless Map - Sudden Death
Flags of Europe Quiz
Biggest Countries by Area
Two Letter U.S. State Abbreviations
Top World Languages
Fast Typing Test - 100 WPM Challenge
Countries of the World - One Minute Sprint
Random
Top Today
Save Your Progress
Create Account