Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.

Assignment Questions


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 and 2nd one will be 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, 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.


Views: 2354


Replies to This Discussion

sir ma nay abi run ki hain aap kay samnay errors hain snapshot sath hain kindly help kar dain..

still not working bro

done still not working 

same errors maray passs be ha... kindly koi sincere ha yahan kisi ki help may tu karday 

Ali brother...
send me ur vu id n name..i will send u screen shot..

plz agar aap osi file may change kar dain aur bana dain tu maharbani ho gi aap ki

i can't download files fro this site.:(

id : bc070401762 , Name : Ali jan

done and send.

is ka b kar dain pleeeeeeez

in k pas jdk install ni ha.....


Azeem Sarwar


little chef helped sincerely.
files will work.
just change names.


© 2021   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service