Share on Google+Share on Google+

1 Answer(s)      7 years ago
Posted in : Java Interview Questions
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:




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
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 beginner - Java Beginners
Java beginner  what is the diffrence between abstraction and interface? with coding
java interview question
java interview question  when will we use abstraction or interface
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
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
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
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
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
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
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
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
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
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
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
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
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
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). 
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
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
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
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 Interview Questions with Answers
is an interface? When do we use abstract class and interface? How many... modifier for interface methods? What is this refers in Java? What is super refers in Java? What is encapsulation? What is an abstraction
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


Advertisement null