GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Placement Papers  >  Oracle  >  Java
Go To First  |  Previous Question  |  Next Question 
 Java  |  Question 40 of 134    Print  
Can u assign an instance of a class which implements an interface to an interface type?

  
Total Answers and Comments: 1 Last Update: January 16, 2006   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
January 16, 2006 00:52:08   #1  
David        

RE: Can u assign an instance of a class which implemen...
Definitely. That is actually the prefer way to make your client code more flexible and easier to maintain.For example in a gaming program you have:Breakable b Factory.createObject();b.performBreak();It doesn't matter what concret Obejct Factory.createObect() returns as long as it implements performBreak() method. The object return could be a character object background object automobile object.
 
Is this answer useful? Yes | No

 Related Questions

Answer posted by pravash on 2005-06-08 02:16:34: The PreparedStatement is a slightly more powerful version of a Statement, and should always be at least as quick and easy to handle as a Statement.  The 
Latest Answer : The PreparedStatement is a slightly more powerful version of a Statement, and should always be at least as quick and easy to handle as a Statement.  The PreparedStatement may be parametrizednull  Most relational databases handles a JDBC ...


Latest Answer : Object has physical existance and class doesn't have physical existance .Object is an instance of the class and class is templete for the object ...

Latest Answer : >> An object is a specific form of an instance: the instance of a class. >> There are other forms of instances - for example    -- in UML, a link is an instance of an association.    -- A process can be an instance of RUP ...

Latest Answer : Definitely. That is actually the prefer way to make your client code more flexible and easier to maintain.For example, in a gaming program, you have:Breakable b = Factory.createObject();b.performBreak();It doesn't matter what concret Obejct Factory.createObect() ...

If we can access a sevlet through both GET and POST methods then which methods will u declare in the servlet class?

Class A{Public void meth(){}}class B extends A{ Public void meth(){ } public static void main(String args[]){ A a=new A(); a.meth();//which method will this call } }if u want to call a method of class B then how can u achieve this?

Latest Answer : Yes.You can ...

Latest Answer : You can extend only one class.Abstract classes support single inheritance. ...
Tags : Abstract

Private class SampleA { }class SampleB extends SampleA { }What is wrong in the above code?
Read Answers (1) | Asked by : S.N.Prasath


 Sponsored Links

 
Related Articles

Service Oriented Java Business Integration Review

Service Oriented Java Business Integration Review Introduction If you ve read through the texts which give you an introduction to SOA or Web Services you will often find them to be quite frustrating and the reason for this is because they spend too much time referencing business processes which are
 

Querying Data with Oracle XQuery

Querying Data with Oracle XQuery Starting with Oracle Database 10g Release 2 you can take advantage of a full featured native XQuery engine integrated with the database With Oracle XQuery you can accomplish various tasks involved in developing PHP Oracle XML applications operating on any kind of dat
 

Using Oracle XML DB Repository

Using Oracle XML DB Repository Another variation on accessing and manipulating XML content stored in Oracle database is provided by Oracle XML DB repository which is an essential component of Oracle XML DB mosgoogle NOTE Oracle XML DB repository also known as XML repository is a hierarchically organ
 

Using Oracle Database for Storing, Modifying, and Retrieving XML Data

Using Oracle Database for Storing Modifying and Retrieving XML Data With Oracle XML DB you have various XML storage and XML processing options allowing you to achieve the required level of performance and scalability One of the most interesting things about Oracle XML DB is that it allows you to per
 

XML Processing in PHP and Oracle Applications

Processing XML in PHP Oracle Applications As mentioned there are two alternatives when it comes to performing XML processing in your PHP Oracle application You can perform any required XML processing using either PHP s XML extensions or PEAR XML packages or Oracle s XML features mosgoogle In the fol
 

PHP Oracle Web Development

PHP Oracle Web Development Data processing Security Caching XML Web Services and Ajax The book is written by Yuli Vaseliev a well known author of different web development and programming books PHP Oracle Web Development Data processing Security Caching XML Web Services and Ajax is a good starting b
 

Getting Started with Oracle and ODP.NET

ODP NET Developer’ s Guide by Jagadish Chatarji Pulakhandam Sunitha Paruchuri A practical guide for developers working with the Oracle Data Provider for NET and the Oracle Developer Tools for Visual Studio 2005 Application development with ODP NET Dealing with XML DB using ODP NET Oracle
 

PHP Oracle Web Development Review

PHP Oracle Web Development Data processing Security Caching XML Web Services and Ajax The book is written by Yuli Vaseliev a well known author of different web development and programming books The author is also an expert in open source technologies and SOA Service Oriented Architecture But besides
 

High-Speed Serial Interface (HSSI)

High Speed Serial Interface HSSI HSSI is High Speed Serial Interface was first developed by Cisco systems and the main purpose was to solve high speed requirement issues The main application of HSSI is on the Wide Area Networks and it helps to enhance the data flow speed on these networks It can wor
 

Fiber Distributed Data Interface (FDDI)

Fiber Distributed Data Interface FDDI The Fiber Distributed data interface or the FDDI is a 100 mbps line using the LAN network and is connected through a fiber optic cable The FDDI technology is used where the networks need a high speed bandwidth and need to cover huge distances than the copper wir
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape