Question # 1 Marks 5
How can we avoid Aliasing Problems in Java, provide a code example. Keep your answer to the point.
Question # 2 Marks 10
You will write a simple Java code that will demonstrate working of threads. You will write two classes, one CS508.java and 2nd one will be SimpleThread.java.
SimpleThead.java will extend the thread class. In run method, your thread will display its name and number of milliseconds (0 to 5000) it will sleep for. And then it will sleep randomly for 1 to 5000 milliseconds. Once thread has finished it will display its name and message that it has finished. One thread will sleep 5 times before ending.
In CS508.java, you will create 3 threads of SimpleThread and will run them. Name of the first thread will be your name, name of second thread will be your VU student id, and name of 3rd thread will be VU.
Here is the sample output of the code that you will write
1) No need to send the java/class files, put code in word file along with answer of the first question.
2) For question number one you can search over the internet. But do not copy paste the contents as it is , use your own words.
Bahi kia ap maj ko screen shots ban da ga
mara pass netbeen nahi ha plz bahi shahid Mahmood bs080200770
although it is not good.
sny2ksa plzzzzzzzzzzzzzzzzz help me mujhay assign mail kardo assign plzzzzzzzz
Ali brother .i don't have anyones id..
send u screen shot .whats the problem with that?
sir uper snapshots hain plz dak lain
sir see above i send u that
please give the snap shop of the following
little chef .
not a good idea.
hv to make cs508 main class that will extends 3 threads.
i didn't check ur solution,but knows it will right.
main class should call thread class.