We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search


+ Link For Assignments, GDBs & Online Quizzes Solution


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


Please read the following instructions carefully before solving & submitting assignment:

It should be clear that your assignment will not get any credit  if:

  • The assignment is submitted after due date.
  • The submitted assignment does not open or file corrupt.
  • The assignment is full or partially copied from (other student or ditto copy from handouts or internet).
  • Student ID is not mentioned in the assignment File or name of file is other than student ID.

Uploading instructions

Your submission must include:


  • Assignment should be in .doc or docx format.
  • Save your assignment with your ID (e.g. bx020200786.doc).
  • Assignment submission through email is highly discouraged


The objective of this assignment is

  • To give some knowledge, basic syntax and idea about threads of Java programming languages. It will also enable students how to write simple programs in Java programming languages.



Your answer must follow the below given specifications.

  •  Font style: “Times New Roman”
  •  Font color: “Black”
  •  Font size: “12”
  •  Bold for heading only.
  •  Font in Italic is not allowed at all.
  •  No formatting or bullets are allowed to use.
  • Your answer should not exceed 10 lines each.


Lectures Covered: This assignment covers Lecture #  22-30


Your assignment must be uploaded/submitted at or before 28/07/2015.




Write a Java program  which creates two threads excluding main thread considering the following points: 


  • Use Interface for creating threads
  • It should have two classes named “Circle.java” and “ThreadTest.java”.
  • The class “ThreadTest” will contain main function.
  • Sample Output  like:


Main Thread starts here......

Circle 1 Area = 78.54

Circle 2 Area = 153.9384

                              Main Thread Ends here.......


Note 1:  The area of circle can be calculated through formula “3.1415 * radius *radius “. Furthermore, you may assign any float/double value to the variable radius.


Note 2: “Circle 1” and “Circle 2” are the names of the “Circle” class objects




             For any query about the assignment, contact at CS508@vu.edu.pk



+ How to Follow the New Added Discussions at Your Mail Address?

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?

See Your Saved Posts Timeline

Views: 2432


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


Replies to This Discussion

Today Is extended Last Data All. Can some one please share the Solution....

My output 

kindly tell me, where we have to write the statement "main thread ends here" in a code. becoz this one displays right after the first statement ... 

use try and catch methods after where you start thread 2

Aadii complete code to send kar dy plzzzzz

mr adil yar solution to send kar aj extend date hy mehrabani hoge?

plzzzzzzzzzzz snd da complete code

plzzzzz tody is mst lst date koi too hlp kr do

aadiiii apke assignment complete ho gai hai to kindly share kar dain

mei nai 2 seperate files mein dono clases define ki hain and code b likha h but cmd prompt mein jb mein ThreaTest.java cal krta hu to yai eroor aa jaty hain and yai book ki example ka output mein lai ra hu ji so ap kindly bta dein k kesy run krain gai cmd mein :( 

it should be after the call of circle,

Kindly Code bta dein

Dear Students Don’t wait for solution post your problems here and discuss ... after discussion a perfect solution will come in a result. So, Start it now, replies here give your comments according to your knowledge and understandings....


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

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