S
Joined
Likes
0

Profile posts Latest activity Postings About

  • Hi,

    Can any one answer for my question.........

    Java has one of the best features is supporting Multithreding....

    so, By this feature it allows multiple threads to execute.

    by default each and every java program is multithreaded, right?

    for each java program has two Threds ...

    one is foreground thread which executes the code what we wrote.
    second one is background thread which is related to garbage collection.

    so, how can we justify that by default java program has two threads by programmatical way...
    for fore ground thread we can print the name by using the method...

    System.out.println(Thread.currentThread().getName());
    what about background thread????
    How to print that name????
  • Loading…
  • Loading…
  • Loading…
Top