Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Can I create any Marker Interface? If yes then how can I
use it???

Answers were Sorted based on User's Feedback



Can I create any Marker Interface? If yes then how can I use it???..

Answer / amit singh

there is no difference between blank inerface and marker
interface
yes we can creae our own marker inerface
interface Xyz
{
}
but is this work for us like a serializable and cloneable
marker inerface
i don't know so please
you do one thing to do your own interface to check only
through the insanceof operator in a clsses those implemen
this interface
thanks amit singh
amitsing2008@gmail.com

Is This Answer Correct ?    9 Yes 4 No

Can I create any Marker Interface? If yes then how can I use it???..

Answer / naveen

Yes, we can create Marker interface, But no use of this type
of interfaces, y because all marker interfaces have contain
special meaning in JVM. But our created marker interface
have no meaning in JVM.

Is This Answer Correct ?    3 Yes 0 No

Can I create any Marker Interface? If yes then how can I use it???..

Answer / diya

public class abc implements Serializable
{
write your own logic
}

Is This Answer Correct ?    0 Yes 3 No

Can I create any Marker Interface? If yes then how can I use it???..

Answer / rama

In my view we can not create marker interfaces. with out defining an interface how will u implement it.serealizble have some predefined methods so called marker interface

Is This Answer Correct ?    1 Yes 8 No

Post New Answer

More Core Java Interview Questions

when a request is generated from apache tomcat 5.5 and goes to oracle 10g or mysql,,, how the oracle or mysql reads the request as apache is a web server and oracle 10g is application server? when the oracle 10g provides response, how the apche tomcat reads it???

0 Answers   SAP Labs,


What are inner classes or non static nested classes in java?

0 Answers  


How does linkedhashmap work in java?

0 Answers  


I have a sorting issue with a Hashmap. My constraint is that I MUST use the Hashmap and work with existing code. I do a database query and place the results in a Hashmap. When I iterate thru the Hashmap, it loses the original alphabetical sorting done by the database. So, my problem is that I must sort the results coming out of the Hashmap which is then placed into another class.

1 Answers  


What is data type in java?

0 Answers  


Do I need java for windows 10?

0 Answers  


What are Advatages of Overloading and Overridding.

8 Answers   TCS, Wipro,


What is the use of inner class?

0 Answers  


Why is string builder not thread safe?

0 Answers  


Are arrays immutable in java?

0 Answers  


Explain the difference between transient and volatile in java?

0 Answers  


What is the base class for error and exception?

0 Answers  


Categories