ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Core Java  >>  Java J2EE  >>  Java Related
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
what is main purpose of interface?
 Question Submitted By :: Chandranallam
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is main purpose of interface?
Answer
# 1
There is no multiple inheritance in java,we can't extends
more than one class at a time,so interface is a way to
implement multiple inheritance in java, and from design
point view when we have some class specific behaviours we
can put interface as a base of the classes.
 
Is This Answer Correct ?    18 Yes 2 No
Saikatk
[Zensar Technologies]
 
  Re: what is main purpose of interface?
Answer
# 2
The purpose of interface is to create the relationship between the parties involved. parties is nothing but a set of classes relates with each other. this is required when the sub class inherits the property of two or more superclasses(multiple inheritance)
 
Is This Answer Correct ?    1 Yes 1 No
Javachi
 
 
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
What is Applet Flickering ? Persistent1
what is the difference between HashMap and Hashtable Value-Labs8
What is thread? BMC5
What is the range of the short datatype?  2
What method is used to know the status of Checkbox(i.e it is checked or unchecked)?  1
write a simple program inheritance? Polaris2
whats the purposr of using serialization?  6
What advantage does an entity bean have over a sessin bean? Adobe3
what us Dyna action form? Aithent-Technologies3
String is an immutable object. Then how can the following code be justified. String s1 = ?ABC?; String s1 = s1+?XYZ?; s.o.p(s1); The output is ABCXYZ, which is the value of s1 ? Flextronics5
class A { class B { psvm(String args[]) { } } } if the prg saved in A.java whats the o/p? HCL5
write java code to print second max number in the array Huawei9
What modifiers are used with a top level class?  2
What is the difference between array and arraylist? what is the difference between arraylist and linkedlist? EDS4
What is a thin-client application? Adobe5
What is Three tier architecture. Can anyone explain with a Ordinary web application Project? (JSP,Servlets,JAVA,DAO) ? TCS1
Can you call a private data from an inner class?  3
What is means by DLL file means ? What is the use of DLL file? What are the contents of DLL file?  2
JSP is by default thread safe or not? what is the meaning of isThreadSafe="true" and isThreadSafe="false". Explain it? Thanks, Seenu Huawei3
What is an Applet ?  2
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com