Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Interview-Questions ABSTRACTION AND INTERFACE

Have Programming Question? Ask it here!
 
 
 


bhaskarreddy
ABSTRACTION AND INTERFACE
1 Answer(s)      4 years and 9 months ago
Posted in : Java Interview Questions



Advertisement
View Answers

November 7, 2009 at 1:42 PM


Hi Friend,

When we do not want to allow any one to create object of our class, we define the class as abstract.
When we have some properties to which the functionalities that defer depending on the user specifications, we use interfaces where the common properties are declared but the implementation is done by the user.

For more information, visit the following links:

http://www.roseindia.net/help/java/a/abstract-keyword.shtml
http://www.roseindia.net/java/master-java/interface.shtml

Thanks


Related Tutorials/Questions & Answers:
ABSTRACTION AND INTERFACE - Java Interview Questions
ABSTRACTION AND INTERFACE  When Use Abstract?When Use Interface ?I Want Explanations?plz help me  Hi Friend, When we do not want to allow any one to create object of our class, we define the class as abstract. When
Abstraction in Java
Abstraction in Java Abstraction is one of the four pillar of OOPS Concept. Abstraction in java is a process by which hiding the irrelevant data  and exposing only the essential feature of object. In java Abstraction
Advertisements
Java Data Objects
new API for interacting with databases. JDO API is a standard interface-based Java model abstraction of persistence, developed as Java Specification Request
java interview question
java interview question  when will we use abstraction or interface
Java beginner - Java Beginners
Java beginner  what is the diffrence between abstraction and interface? with coding
Abstraction In Java
abstraction can be achieved by using the abstract class or implementing the interface. An interface provides the full abstraction in Java. In Java abstract keyword... Interface Interface in Java is also an another option to apply abstraction
OOPS Concept Abstraction with example - Java Beginners
OOPS Concept Abstraction with example  I am new to java. In java OOPS concept Abstraction means abstract or something. Please explain it with one example  Hi Friend, The process of abstraction in Java is used
Abstraction : Java Glossary
Abstraction : Java Glossary   .... Encapsulation 2. Polymorphism 3. Abstraction 4. Inheritance In OOPs, these concepts... creation process, programmatically. Here we will discuss Abstraction briefly
java beginners - Java Beginners
java beginners   Q. 1 How is class related to data abstraction? Q. 2 what is the relationship between a class and an object? thanks  Hi Friend, 1)Data Abstraction is used to hide certain details that we
What is Abstraction - Java Beginners
What is Abstraction  What is abstraction in java? How is it used in java..please give an example also  Hi Friend, Abstraction is nothing... components work internally, but only how to interface with them. Thanks
servlets
interfaces and classes for writing servlets. The Servlet Interface The central abstraction in the Servlet API is the Servlet interface. All servlets implement this interface, either directly or, more commonly, by extending a class
Oops Definition - Java Beginners
Oops Definition  What is Abstraction and Encapsulation? What is the Difference Between Abstraction and Encapsulation? Regards M.KethraBalan.  Hi Friend, Abstraction - The process of abstraction in Java is used
Difference between abstract class and an interface
for which we cannot create object of it. Interface is known for fully abstraction... abstract and interface is a way to achieve abstraction in java. Now here, we...Difference between abstract class and an interface The difference between
Abstraction in Java 7
Abstraction in Java 7 This section elaborate about abstraction. It is one of OOPs concept. Abstraction :  Abstraction means hiding the unnecessary... or object.  In java, you can see concept of abstraction whenever you use
Interface in Java
oriented concept. Through interface only abstraction is achieved in java. Syntax...Interface in Java Interface in java programming languages is a collection of abstract methods. A class must implements interface. An interfaces
GUI Structural Patterns
interface. This logical part is variously referred to as the model, business logic, abstraction, or document. This code must not refer to the user interface directly -- it will interact with the user interface code by returning values
Difference between Encapsulation and Abstraction in Java
. Abstraction in Java is represented by Interface, Abstract class, Abstract methods... and Abstraction in Java. Encapsulation is a process of hiding all the data and methods within a class from outside world. Abstraction on the other hand
OOPs concepts in Java
Object Inheritance Encapsulation Abstraction Polymorphism Class: Class... of old general class. This reduces the development time. Abstraction: Abstraction in Java shows the essential features of the object that are relevant
Interface in java with example
abstraction. The interface, we can support the functionality of the multiple...We are going to discuss about Interface in Java. Interface is blueprint of a class. Interface is a collection of abstract methods. Interface has only
Core Java Doubts - Java Beginners
for Inheritance? And when we go for Interface? 5)What is difference between Abstraction... implements the java.lang.Comparable interface in order to compare its instances while... and interface, visit the following links: http://www.roseindia.net/java/language
Structural Patterns
is that class patterns describe abstraction using inheritance and describe how it can be used to provide more useful program interface. Object patterns, on other hand
Encapsulation VS Abstraction - Java Beginners
and Abstraction. where to use abstract and where to use specifies like public... entity. This keeps the data safe from outside interface and misuse. One way...(); } Abstraction-The process of abstraction in Java is used to hide certain details
Collections Framework
framework provides a standard common programming interface to many of the most common abstraction without burdening the programmer with many procedures... basic interfaces of the framework are as follows: The Collection interface
OOPs and Its Concepts in Java
, abstraction, polymorphism etc. ADS4ThUnitADS Class - It is the central point of OOP... development time.  Abstraction - The process of abstraction in Java is used... words, it deals with the outside view of an object (interface). 
PHP PDO Index
PHP PDO: PHP has introduced a new uniform interface for database connectivity..., lightweight, uniform  interface for database connectivity and accessing the data. PHP is not an abstraction layer like PearDB. It is much like Pearl's DBI
Bridge Pattern
; Builder pattern provides independence to the interface from its... the relationship among the objects.  Benefits: It separates the abstraction from the implementation details. Inheritance tightly couples the abstraction
Theory - Java Beginners
is composite Data type? 4)How does a class represent abstraction of a real world entity...)? 6)How does a class accomplish abstraction? Program code required::: I... interface and have multiple implementation. 2)It is a user defined method which
Pick random element from Set
Pick random element from Set A Set is a collection that contains no duplicate elements. It does not contain duplicate elements This interface models the mathematical set abstraction. Here, we are going to pick an element randomly from
Netwiser
a graphical user interface, a network simulator, and a portable C++ framework...-level of abstraction for creating network software. It provides you with a clear
Java : What is servlet?
the Servlet interface. The main abstraction of Servlet API is the Servlet interface. Servlets implements this interface directly or by extending class that implements... the Servlet interface which defines the lifecycle methods. For generic service you
NIO Tutorials, Java nio tutorial, Java nio package tutorial
primitive I/O abstraction A file interface supporting locks... scalable servers The NIO API provides many useful abstraction classes to better programming. The useful abstraction classes are: Buffers Charsets
clone method in Java
() method is used in class where Cloneable interface is implemented but throws a CloneNotSupportedException where a Cloneable interface is not implemented... classes. Also it's use in against abstraction. If you want to retrieve an object
Encapsulation in Java
Encapsulation along with Inheritance, Polymorphism, and Abstraction are the four concepts of Object Oriented Programming (OOPs). Encapsulation in Java... outside the class. Interface controls the data and code access. In other words
Java Tutorial
in Java Class & Objects OOPs concept in Java Data Abstraction... Abstract Method & Class Java Interface Java Constructors Java
Java Interview Questions - Page 12
places. o The well-defined separations of interface... of abstraction and can be counted on to work even on objects of yet... between interface and abstract class? Answer:   o
JDBC, Java Database Connectivity
as an abstraction layer and hides the complexity of accessing database. Different database...: java.sql.Connection Interface is responsible for obtaining... With the help of java.sql.DatabaseMetaData interface we can get
PHP MySQL on Centos 5.x
library php-cli.i386 : Command-line interface for PHP php-common.i386 : Common files for PHP php-dba.i386 : A database abstraction layer module...-pdo.i386 : A database access abstraction module for PHP applications php
A - Java Glossary
be instantiated, but they can be extended into sub-classes.  Interface Vs... inheritance, an interface is equivalent to a fully abstract class (a class with only...; Abstraction In OOPs, these concepts are implemented through a class
DOJO Tutorial
. It provides abstraction layer to the programmer. Provides Dojo API to use directly... Internationalization libraries dijit : A library that contains the user interface
JDO - Java Data Objects Tutorials
. JDO API is a standard interface-based Java model abstraction
Core Java Interview Question, Interview Question
an Interface and an Abstract class Answer: In abstract class you can define as well.... In interface all we just declare methods and the definition is provided... programming  Answer: 1. Abstraction It means hiding the details and only
iPhone Application Development
, performance and experience. Interface Builder Interface Builder makes designing a user interface as easy as drag and drop. It is Apple's graphical.... It works with Xcode in developing apps’s user interface and business logic
Eclipse plugin-Network
interface, a network simulator, and a portable C++ framework for creating all types... network applications and protocols by providing a higher-level of abstraction
ClassPath Helper
of abstraction when showing the class related information. Instead of drilling down... in an Interface that is referred to in other classes. For performance... that no reference back to the originating Interface exists within
Java Training and Tutorials, Core Java Training
-in application programming interface (API) and due to its rich set... Interface:  Best Practices... Interface: Set Implementation Classes
Swing In Java
called abstraction layer between code structure and the Swing based GUI's... the interface using which it is viewed. Swing And AWT Before, the Java SE version
Categorizing Design Patterns
is that class patterns describe abstraction using inheritance and describe how it can be used to provide more useful program interface. Object patterns, on other hand
Abstract Factory Pattern
of abstraction higher than factory pattern. This means that the abstract factory returns... a class library of products that provides expose to interface and creates
Open Source Directory
OS X obtains this information via abstraction APIs, enabling the use... that allows a group of persons to share documents via a web interface. Documents can... under the Artistic License-derived "HKLC Nadmin Studio Interface" License
C++GraphicsTutorials
. It has syntax similar to OpenGL and using OpenIL's ILUT interface can be used... this evolving graphics interface standard. Written by members of the OpenGL..., it is useless. A real X programmer usually uses a much higher level of abstraction
 

 

 

DMCA.com