We have been working very hard since 2009 to facilitate in your learning Read More. We can't keep up without your support. Donate Now.

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

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

Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion

How to Add New Discussion in Study Group ? Step By Step Guide Click Here.

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

Attachments:

Replies to This Discussion

Sny2Ksa.. Plz screen shot bana do..

Bc100200503

Muheet Ali

Muheet Ali WASIM RAJA sorry me went for traveh..

plz give me the screen shots

BC100200192

Wasim Javed

Little Chef plzzzzzzzzzzzzzz help me bhai

help plz

Hi Chef,

What about this error? I am using the same files you sent.

Use that file.it will give no error

Attachments:

6 errors here

Both have been renamed.

The problem is the error that i am getting while compiling CS508.java. All files are correctly named and SimpleThread is also compiled. But error occurs while compiling CS508.java (can't find symbol SimplThread is the error)

sir jab ma SimpleThread is tara run karta hon tu ye error aya raha ha java SimpleThread

App apni file ka name capital letters main likhan.

java CS508.java

In Sha Allah ap ka masla hal ho jay ga.

RSS

Latest Activity

+M.Tariq Malik replied to +M.Tariq Malik's discussion MGT601 GDB No 01 Fall 2020 Solution / Discussion Last Date: 27-11-2020 in the group MGT601 SME Management
8 minutes ago
+ " Şinger " and + "ραℓωαѕнα" are now friends
9 minutes ago
+ " Şinger " replied to Pooja kumari's discussion quiz discussion
9 minutes ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion EDU654 Assignment 01 Fall 2020 Solution / Discussion in the group EDU654 Addressing problems of learning through technology and pedagogy
14 minutes ago
+M.Tariq Malik replied to Imtiaz Waqar's discussion COST AND MANAGEMENT ACCOUNTING (MGT402) ASSIGNMENT NO. 01 in the group MGT402 Cost & Management Accounting
17 minutes ago
Amina Ibrahim replied to Muhammad Faizan Alam's discussion CS604 - Operating Systems Assignment NO 1 Due Date: 30-November-2020 in the group CS604 Operating Systems
18 minutes ago
madi ali replied to +M.Tariq Malik's discussion CS506 Assignment 01 Fall 2020 Solution / Discussion in the group CS506 Web Design and Development
19 minutes ago
madi ali replied to +M.Tariq Malik's discussion CS506 Assignment 01 Fall 2020 Solution / Discussion in the group CS506 Web Design and Development
21 minutes ago
madi ali replied to +M.Tariq Malik's discussion CS506 Assignment 01 Fall 2020 Solution / Discussion in the group CS506 Web Design and Development
32 minutes ago
MUHAMMAD NAJEEB joined +M.Tariq Malik's group
43 minutes ago
MUHAMMAD NAJEEB liked +M.Tariq Malik's discussion CS101 Assignment 01 Fall 2020 Solution / Discussion
43 minutes ago
madi ali replied to +M.Tariq Malik's discussion CS506 Assignment 01 Fall 2020 Solution / Discussion in the group CS506 Web Design and Development
43 minutes ago

Looking For Something? Search Here

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

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

.