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.
|
Tags:
Little Chef yar plzzzzzzzzzzzzzzzzzzzzz help me time kam ha
meray pas na error a rha hai r na he output
han ji no output there
look at that
screen shot bhj do ap
BC100200192
WASIM JAVED
Little Chef Yr ap file file rename krne k bad compile to ho rahi hai but error aa raha hai Plz Help...
plz share screenshot for:
BC090400185
Muhammad Adil
bro this one is tooo plzzz
BC090400185
Muhammad Adil
Reply by Little Chef 8 minutes ago
Remove the SimpleThread.class file. After that only compile CS508.java. Tell me quickly.
I am getting same 4 errors of SimpleThread
:O
NO,only have to submit screen shot,not code.
yar id aur Name bato bhai aur Q#1 ka ans b bato..
Q1 ka ans kya h koi batye ga
© 2021 Created by + M.Tariq Malik.
Powered by
Promote Us | Report an Issue | Privacy Policy | Terms of Service
We are user-generated contents site. All product, videos, pictures & others contents on site don't seem to be beneath our Copyrights & belong to their respected owners & freely available on public domains. We believe in Our Policy & do according to them. If Any content is offensive in your Copyrights then please email at m.tariqmalik@gmail.com with copyright detail & We will happy to remove it immediately.
Management: Admins ::: Moderators
Awards Badges List | Moderators Group
All Members | Featured Members | Top Reputation Members | Angels Members | Intellectual Members | Criteria for Selection
Become a Team Member | Safety Guidelines for New | Site FAQ & Rules | Safety Matters | Online Safety | Rules For Blog Post