GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Tech FAQs  >  Programming  >  Java Classes
Go To First  |  Previous Question  |  Next Question 
 Java Classes  |  Question 61 of 68    Print  
is it ok to say interfaces,classes are of polymorphism(i.e we can use those for different purposes).if not then why?

  
Total Answers and Comments: 2 Last Update: November 20, 2006     Asked by: prasad 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
November 17, 2006 00:16:47   #1  
barad        

RE: is it ok to say interfaces,classes are of polymorp...

hi friend

the purpose of class and interface is different one different is interfaces supports multiple inheritance and class does not


 
Is this answer useful? Yes | No
November 20, 2006 01:43:24   #2  
viji        

Definition of Interface

Inorder to reduce memory space and accessing the class members without instanciate Object is the Interface which will contain only abstract methods


 
Is this answer useful? Yes | No

 Related Questions

A) ClassesB) VariablesC) Memory D) None of the Above 
Latest Answer : memory ...

A) ArgumentsB) ClassesC) ConstructorsD) Parameters 
Latest Answer : Yes objects can be created only using constructors if we do not provide one compiler will create a default cons for us thus allocating memory for objects we are going to create and the default values for instance variables are:for integers, float, double, ...

A) EncapsulationB) ClassC) InheritenceD) Polymorphism 
Latest Answer :      With method overloading Java supports polymorphism. ...

A) EncapsulationB) ClassC) InheritenceD) Polymorphism 
Latest Answer : class ...

A) Nested Classes 
Latest Answer : I think this mode of answering the question when you have to enter the text should not be used. one thing can be named in many ways, and you cant say that which is correct.I answered Inner classes and it says its wrong. ...

A) TrueB) False 
Latest Answer : true.....class declared with static called static inner class....with out static called non static inner class.. ...

Is it ok to say interfaces,classes are of polymorphism(i.e we can use those for different purposes).if not then why?
Read Answers (2) | Asked by : prasad

Can a abstract class have a constructor ?When would the constructor in the abstract class be called ?
All the classes including the abstract classes can have constructors.Abstract class constructors will be called when its concrete subclass will be instantiated. 
Read Answers (2) | Asked by : devs
Tags : Abstract

Latest Answer : The Java class file is a precisely defined format for compiled Java. Java source code is compiled into class files that can be loaded and executed by any JVM. The class files may travel across a network before being loaded by the JVM. The Java class file ...
Read Answers (1) | Asked by : mallikarjun rao.Y


 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
 

ODP.NET - Fundamental ODP.NET Classes to Retrieve Data

ODP NET Fundamental ODP NET Classes to Retrieve Data To retrieve data from an Oracle database using ODP NET we need to work with a few of the ODP NET classes At this point we will discuss the most fundamental classes available in ODP NET for retrieving data mosgoogle The following is the list of fun
 

Microsoft AJAX Library - C# and JavaScript Classes

C and JavaScript Classes For the purpose of demonstrating a few more OOP related concepts we ll use another class Our new class is named Table and it has two public fields rows columns and one method getCellCount The getCellCount method should return the number of rows multiplied by the number of co
 

Microsoft AJAX Library - JavaScript Classes

JavaScript Classes Not only can JavaScript functions contain other functions but they can also be instantiated This makes JavaScript functions a good candidate for implementing the concept of a class from traditional object oriented programming This is very helpful feature indeed because JavaScript
 

Concepts of Object-Oriented Programming

Object Oriented JavaScript In this chapter you ll learn about OOP Object Oriented Programming and how it relates to JavaScript As an ASP NET developer you probably have some experience working with objects and you may even be familiar with concepts such as inheritance However unless you re already a
 

C++ Storage Classes

C Storage Classes In this C tutorial you will learn about storage classes types of storage class variables Automatic External and Static explained with examples mosgoogle center Storage classes In the context of scope of variables in functions exists the important concept of storage class What is St
 

Java and Client Server Models

Java and Client Server Models The Role of Client Servers on the Web Client server models provide the essential mechanisms for working with the Internet In fact most of the World Wide Web is built according to this paradigm In client server models the web browsers run by millions of users are the cli
 

C++ Polymorphism

C Polymorphism Introduction Polymorphism is the ability to use an operator or function in different ways Polymorphism gives different meanings or functions to the operators or functions Poly referring to many signifies the many uses of these operators and functions A single function usage or an oper
 

C++ Objects and Classes

C Objects and Classes An Overview about Objects and Classes In object oriented programming language C the data and functions procedures to manipulate the data are bundled together as a self contained unit called an object A class is an extended concept similar to that of structure in C programming l
 

SQL Programming

SQL Programming Overview Anybody who has done something for a long time has probably wanted to change how things work at some point or another. A worker at a mill might have found a more efficient way of cutting logs, or a mathematics teacher might have had a hand in changing a school’s al
 

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