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       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
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
how  you will prevent method overriding?
 Question Submitted By :: Ravi
I also faced this Question!!     Rank Answer Posted By  
 
  Re: how you will prevent method overriding?
Answer
# 1
by declaring the method has a final
 
Is This Answer Correct ?    9 Yes 0 No
Ravi
 
  Re: how you will prevent method overriding?
Answer
# 2
final method can not overridden
 
Is This Answer Correct ?    8 Yes 0 No
Neelam,noida
 
 
 
  Re: how you will prevent method overriding?
Answer
# 3
bu marking the method final
 
Is This Answer Correct ?    7 Yes 0 No
Ravikiran
 
  Re: how you will prevent method overriding?
Answer
# 4
you also prevent overriding by making the method static
 
Is This Answer Correct ?    2 Yes 0 No
Murali.25
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
A abstract class extending an abstract class.Super class has both abstract and non-abstract methods.How can we implement abstract and non-abstract mehtods? Explain with snippet  3
What is Session and cookies?Explain in detail with an example? CTS2
what is a thread? IBM10
What is finally in exception handling?  6
In C we use only compiler. Why java uses both compiler and interpreter? What is its significance?  5
Does a class inherit the constructor of its super class?if it does, how can you hide that constructor? if it doesnot how can you call it from the sub class?  1
What is the difference between C++ & Java? Syntel21
Can we override static methods? Bally-Technologies15
As a developer what steps do you take to improve the performance?  3
what is difference between Exception and Error?  13
What is the minimum and maximum length of an identifier? TCS6
what is the life cycle of jsp? Photon2
what is ennumaration? AMDOC1
What are order of precedence and associativity, and how are they used?  1
What are access modifiers in Java ?  5
Name the methods in mouse listeners ?  3
Difference between local and global transaction ? iFlex1
what is a package?  8
How Applets & Servlets will communicate with each other?  2
whats is the use of final,in which situation final can be used in the application? DNS2
 
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