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   SiteMap shows list of All Categories in this site.
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 difference between abstract class & final class
 Question Submitted By :: SatishK
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is difference between abstract class & final class
Answer
# 1
abstract class can not instantiate.
abstract class can not create abstract constructor or static method.abstract class must be inherited. and vice versa final class.
 
Is This Answer Correct ?    3 Yes 2 No
Rajabhau
 
  Re: What is difference between abstract class & final class
Answer
# 2
abstract class is a class that has no direct instance in 
the system but final class is a class in which we found the 
correct answer
 
Is This Answer Correct ?    1 Yes 2 No
Guest
 
 
 
  Re: What is difference between abstract class & final class
Answer
# 3
Abstract class is the one which is suppose to be extended
but
when we declare a class as final, we cannot extend it.
 
Is This Answer Correct ?    5 Yes 0 No
Amit Saxena
 
  Re: What is difference between abstract class & final class
Answer
# 4
An abstract class is one which can't be instantiated, as it 
contains one or more abstract methods( methods that are 
only declared, their implementation is left for 
subclasses).An abstract class always needs to be extended 
in order to be used.
A Final class is one which can't be extended/inherited.
 
Is This Answer Correct ?    1 Yes 0 No
Pallavi
 
  Re: What is difference between abstract class & final class
Answer
# 5
1)abstrat class is just a incomplete class mean to say you 
only declare a method when some class extends this abstart 
class then it adds some facility in this class when you 
define the method body those inherited from the abstract 
class.
2)but the fianl class you cn't able to add the new 
functionality to this class because extnd the class its not 
just mean to make child clss but to means to facilitate 
this class with some aditive coding .so means to say that 
its  complete class you don't able to add new functionality 
in this class and you never extends this class .
thanks                                       amit singh
                                          
amitsing2008@gmail.com
 
Is This Answer Correct ?    0 Yes 0 No
Amit Singh
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
how to call One constructor from another; Innodata-Isogen7
How to validate the request (Eg:user name and password) in session(http session)? not in LDAP server ? Saksoft1
which methods consisting of the serilizable interface?  3
What is the difference between throw and throws? Cap-Gemini2
Hi Friends, Can u give few interview questions which relates ArrayList and Hashmap. I mean how to link ArrayList and HashMap.I know this is not good way of asking questions like this , but i need Microsoft1
Why Wait and notify are kept in Object class although they are used only with Thread Class Saksoft2
why to use transient variables when static variables can be used for Serialization  3
Can we call the Thread.sleep in Synchyronozed block? Logica-CMG4
Who developed JScript language?  3
strings in java are objects.why?  2
How to access a variable if it is declared as private?  2
why the equals method can be override?when we override the equals method?  4
watz the difference between abstract class and interface? Which one u ill choose as a designer? Sonata1
What is Vector?Can you elaborate how Vector is Thread safe?  3
When does Exception occurs?  3
Can we access private data outside of the class directly in java programming language? Why There is no runtime checking in java, which leads to access the private data directly outside of a class? Google2
Difference between a Scrollbar and a ScrollPane?  1
What is the difference between abstract class and interface?  2
Is it compulsory to have atleast one abstract method in abstract class?  7
what are class,constructor and primitive data types?  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