Home Tutorialhelp Allcomments Interviewquestions Java Interview Questions



User Comments for the tutorial:

Java Interview Questions - Page 5


Why Ruunable interface is better than ectends a th
Why Ruunable interface is better than ectends a thread 

Why Ruunable interface is better than extends a th
Why Ruunable interface is better than extends a thread? Answer: ------------ If u r implementing Thread by Extending Thread class, u can't extend any other class/interface. But u can achieve this by implementing Runnable interface. 

improve the knowledge 

why Runnable Interface is best compared with Threa
if we are extending Thread class to our class inorder to implement the concept of multithreading then we cannot extend any other class to our class,but if we done that by implementing Runnable Interface then we can extend any other class and can impl 

very nice site 

Related Tutorial and Articles
Java Interview Questions

Interface in JAVA - Java Interview Questions
Interface in JAVA  How interface fulfills all th facilities which.... To sort out this flaw java has provided Interface which supports the Multiple... on the Interface. http://www.roseindia.net/java/java-exception/create-interface.shtml 

Java Interview Questions

INTERFACE - Java Interview Questions
INTERFACE  Why Use Interface in Java?i want region ?plz post answer   Hi Friend, Interfaces form a contract between the class... the methods of the interface are implemented with the correct signature.Interfaces 

Java Interview Questions

Interface - Java Interview Questions
Interface  Respected sir why we use Interface in java? because we... the interface's example. But in java programming language interface is nothing... a new interface, you are defining a new reference data type. You can use 

Java Interview Questions

java bits 5 - Java Interview Questions
java bits 5  Given: 10. interface Foo {} 11. class Alpha implements Foo { } 12. class Beta extends Alpha {} 13. class Delta extends Beta { 14. public static void main( String[] args) { 15. Beta x = new Beta(); 16 

Java Interview Questions

JAVA INTERFACE - Java Interview Questions
JAVA INTERFACE  Can Any Interface will have inner classes or not... if YES explain me with a example.. if NO explain me why? And next one Whether an interface be final????  Hi friend, Yes, as for example 

Java Interview Questions

interface variables - Java Interview Questions
interface variables  why interface variables are final? explain me with good program example?? i knw why the variable is static but,i dont knw why... modifier ensures the value assigned to the interface variable is a true constant 

Java Beginners

for Interface in java? and want to know why they used interface instead of multiple inheritance? Thanks in advance   An interface is one which has abstract... method it will take.It creates complexity.Therefore java uses Interface 

Java Interview Questions

java - Java Interview Questions
java  difference between abstract and interface?Why abstract class needed?  Hi Friend, Difference between Abstract class and Interface...) Interface is more flexible than abstract class because one class can only "extends 

Java Interview Questions

multi threading - Java Interview Questions
Inherictance. By implementing Runnable interface we can acheive better OOPs design and can avail more than one interface for a sigle class. Therefore implementing Runnable interface is better than extending Thread class. For further more 

Java Interview Questions

why the occupancy rate is zero? - Java Interview Questions
why the occupancy rate is zero?  import java.util.Scanner; public...("The number of floors cannot less than 1, please re-enter: "); floor=keyboard.nextInt...) { System.out.println("Number of rooms cannot less than 10, please re-enter: "); rooms 

Advertisements Advertisements