www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More

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 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

 

 

Note:

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.

 


+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)


Views: 2304

Attachments:

Replies to This Discussion

HAPPY AND BLESSED RAMZAN TO ALL.

:)

Kamran Yaqoob CHECK ATTAchement

Attachments:

it work for me :) thanks alot 

Ahsan bhai r u there plzzzzzzzz help me yar ..agar aap ka ko ga ha tu

Ali bahi ya complete assignment ha

kahan ha i could not see any where plzzzzzzzzzzzzzz time kam ha koi help kar day...

Little Chef plzzzzzzzzzzzzzz see jaldi bhai...

sir simpleThread.java b run ho rahi ha laik result kyun ni show ho rahay

Little Chef bhai ye jao abi ma nay snapshot send ki ha ye SimpleThread.java ki ha is may ye error aya raha ha plzzzzzzzzzzzz me yar

RSS

Looking For Something? Search Below

Latest Activity

+ !! Ήලᵯᵯℹ Ⲥⱨ !! + liked Zoha n's discussion Jhuki Jhuki Si Nazar...!!
26 minutes ago
+ !! Ήලᵯᵯℹ Ⲥⱨ !! + posted discussions
38 minutes ago
+ !! Ήලᵯᵯℹ Ⲥⱨ !! + replied to Laila kabeer's discussion @@ HAVE A BEAUTIFUL DAY@@
1 hour ago
+ !! Ήලᵯᵯℹ Ⲥⱨ !! + replied to Naser Javed (BBIT-8)'s discussion Eik aur single hony ka faida :p
1 hour ago
+ !! Ήලᵯᵯℹ Ⲥⱨ !! + liked Naser Javed (BBIT-8)'s discussion Eik aur single hony ka faida :p
1 hour ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion STA100 General Mathematics and Biostatistics GDB Fall 2020 Solution / Discussion in the group STA100 General Mathematics and Biostatistics
1 hour ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion STA100 General Mathematics and Biostatistics GDB Fall 2020 Solution / Discussion in the group STA100 General Mathematics and Biostatistics
1 hour ago
+ M.Tariq Malik liked + M.Tariq Malik's discussion STA100 General Mathematics and Biostatistics GDB Fall 2020 Solution / Discussion
1 hour ago
+ M.Tariq Malik added a discussion to the group STA100 General Mathematics and Biostatistics
1 hour ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion MTH501 Linear Algebra Assignment No 02 Fall 2020 Solution / Discussion in the group MTH501 Linear Algebra
1 hour ago
+ !! Ήලᵯᵯℹ Ⲥⱨ !! + liked + ! ! Pagal Dewani ! ! +'s discussion Single hone ka faeda
1 hour ago
+ !! Ήලᵯᵯℹ Ⲥⱨ !! + liked D$OuLoVeRwHeLm€d's discussion Poetry
1 hour ago

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

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

.