which one the better thread emplemented thread or extended ?

Answer Posted / ravikiran

implementing runnable interface is a bettr practice

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define array. Tell me about 2-D array.

586


What do you mean by an object in java?

629


Do you need to import math in java?

559


What are the ways to instantiate the class class?

596


Why does java have two ways to create child threads? Which way is better?

543






What is the string function?

556


What is an escape character in java?

530


Explain the difference between the public, private, final, protected, and default modifiers?

549


Can you explain inner class.

590


What is method with example?

580


How can we make a class singleton?

573


how can you take care of mutual exclusion using java threads? : Java thread

608


Differentiate between vector and array list.

636


How many bits is a string in java?

577


How do you declare an array in java?

519