GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  J2EE  >  Core Java
Go To First  |  Previous Question  |  Next Question 
 Core Java  |  Question 277 of 507    Print  
What is the actual purpose of marker interface when they doesn't have any methods.

  
Total Answers and Comments: 2 Last Update: December 23, 2006     Asked by: vikranth 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
July 25, 2006 03:41:45   
Nandakumar        

RE: What is the actual purpose of marker interface whe...
The actual purpose of marker interface is just to mark the respective class as specific to perform a respective job like if you use serializable interface it just makes a mark that this class can be serialized similarly if you use cloneable the class can be cloneable.... and these marker interface has no methods
 
Is this answer useful? Yes | No
December 23, 2006 04:21:52   
puneet        

RE: What is the actual purpose of marker interface whe...

the main purpose of marker interface is to check the instance of that class whick is going to implement by using instanceof()

method.but is reccomended

in programming code b'coz we know that why am doing it.

like-----we implement cloneable interface when use protected clone() method of Object class.in this case we know that i m going to create a copy of that object.


 
Is this answer useful? Yes | No

 Related Questions

Can we declare multiple main() methods in multiple classes.ie can we have each main method in its class in our program?

It is a saying that static methods in JAVA programs should be minimised. What is the reason for this? any problems arise or there is any performance measures to be looked into it.
Read Answers (3) | Asked by : Beena

br />1.what is oracle.2.what is major differenece oracle8i and oracle9i.4.tell me some thing ur self.5.please tell me about oops.6.what is single inheritance.7.what is multiple inheritance.8.can java support 
Latest Answer : 8.can java support multiple inheritance.java support multiple inheritance for interfaces not fro classes25.what is difference between procedure and functions.function returns only one value where as procedure returns more than one value ...
Read Answers (11) | Asked by : rajjava

Latest Answer : Abstract Class: There are two ways to create abstract class, one is by mentioning abstract key before the class declaration, and second one is by mentioning abstract key before the method declaration we can make that class as abstract class.eg:public ...
Read Answers (4) | Asked by : Beena
Tags : Abstract

Latest Answer : 1.By implementing Runnable interface  2.By Extends Thread class ...
Read Answers (3) | Asked by : dinakar

Latest Answer : An interface is a specification of method prototypes. All the methods of interface are public and abstract. They are public because they should be available to third party vendors and they are abstract because their implementation is left for third party ...
Read Answers (11) | Asked by : prakash

I need some more information about interface. For Example there is no any functionality inside the method which is declared in any interface. Then why i want to implement that interface to my class. 2. Statement is an interface. When i say stmt.executeQuery(). I am getting the records in my ResultSet. How it is possible?.. since there is no functionality insid the methods which is declared in Statement Interface. What is happning here?
An idea 

Like Object class is inherited by every class, means every class that you define in java is implicitely extending one class that is Object. Similarly i want to know that which interface is implicitely implemented by every class that we define. let me know as soon as possible. Thanks
I dont know 
Read Answers (2) | Asked by : Hrishikesh

Write classes/methods to calculate the totallength of a set of lines given the start and end points taking into account overlapping.E.g.Line 1 start: -1.4, end: 3.2 Line 2start: 2.9, end: 4.1etc..Total length would be:line 1 length = 4.6 line 2 length =1.2, but as line 2 overlaps line 1 by 0.3, therefore length of set is 5.5(rather than 5.8).Please see if you can think of good solution!
Read Answers (2) | Asked by : sayfur79

Latest Answer : When we r implementing the some comman methods in the every class at that time we keep that all methods in the one interface. Another way example:- for example for CD Writer soft ware dovelepment all companies(LG,SAMSUNG) follow the method ...
Read Answers (6) | Asked by : Shekhar


 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
 

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
 

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
 

The Interview Snafu

How to turn someone else’s mistake to your advantage Your dream job is about to become reality. A recruiter gave you the heads up about the perfect position at Humungous Conglomerate, Inc. You went through five interviews as well as a battery of psychological tests mandated by their HR de
 

Winning a Job Interview with a Winning Resume

Does your resume unlock your potential, take your skills to the highest level and win you the interview and the job you want now? The job market today is highly competitive and even if you think you have what it takes to get an interview you won’t get over the line without a polished, prof
 

JavaScript Window Object Timeout Methods

JavaScript Window Object Timeout Methods In this JavaScript tutorial you will learn about setTimeout clearTimeout and open methods of window object along with syntax usage and examples for each method mosgoogle center setTimeout The setInterval method of Window object is used to call a function or
 

JavaScript Document Object Methods Part II

JavaScript Document Object Methods Part II In this JavaScript tutorial you will learn about document object methods getElementsByTagName getSelection handleEvent releaseEvents routeEvent write writeln along with syntax examples and brief explanation mosgoogle center getElementsByTagName The the getE
 

JavaScript Document Object Methods Part I

JavaScript Document Object Methods Part I In this JavaScript tutorial you will learn about methods of document object along with syntax and examples This section covers captureEvents open close getElementById getElementsByName methods with explanations for each method mosgoogle center Methods of d
 

JavaScript History Object Properties and Methods

JavaScript History Object  Properties and Methods In this JavaScript tutorial you will learn about history object properties and methods length current next previous properties back forward and go methods along with syntax and examples mosgoogle center The history property has the return v
 

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

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

Page copy protected against web site content infringement by Copyscape