tag:blogger.com,1999:blog-205030209684246887.post1222701325264450103..comments2024-03-27T14:53:49.838+05:30Comments on Java tutorial and Java Interview Questions and Answers: What is marker interface in Java? Why need marker interface?Anil Nivargihttp://www.blogger.com/profile/06734257637895367389noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-205030209684246887.post-33295493896081642452018-05-09T15:33:13.559+05:302018-05-09T15:33:13.559+05:30Use of marker interface in java
Marker Interface...Use of <a href="http://beyondcorner.com/create-own-marker-interface-in-java/" rel="nofollow">marker interface in java</a> <br /><br />Marker Interfaces are used to indicate something to compiler/JVM. If JVM see that a class is a object of Marker Interface then it will perform some special operation. Take an example with Serializable, Clonnable marker interface, if JVM see a Class is Serialized/Clonnable then It will do some special operation on it, similar way if JVM sees one Class is implemented custom marker interface which is created by ourself then the JVM do some special operation. How it’d do the special operation,<br /><br />Anonymoushttps://www.blogger.com/profile/15430265906394667590noreply@blogger.comtag:blogger.com,1999:blog-205030209684246887.post-9183798355125044562018-05-01T00:12:46.450+05:302018-05-01T00:12:46.450+05:30This comment has been removed by a blog administrator.Anonymoushttps://www.blogger.com/profile/06043766926381405362noreply@blogger.comtag:blogger.com,1999:blog-205030209684246887.post-58910852295860588132018-05-01T00:10:56.409+05:302018-05-01T00:10:56.409+05:30Your wrong!!! I do not know where you are getting ...Your wrong!!! I do not know where you are getting this information at? From java SE 7 Programmers Study Guide mentions that “interface is a public set of methods that must be implemented by the class that uses the interface.” An interface is an interface, if it has changed I should read this in this type of book mention above. If an interface like Cloneable has no public methods, means it does not have public methods, but any class that implements it must implement the Object.clone() as public. This is what it means!!! Please, don’t make something so simple into a complex discussion, especially at an interview!!<br />Anonymoushttps://www.blogger.com/profile/06043766926381405362noreply@blogger.comtag:blogger.com,1999:blog-205030209684246887.post-22734340606006406472018-04-20T11:28:55.407+05:302018-04-20T11:28:55.407+05:30Hola,
What a brilliant post I have come across ...Hola, <br /><br /><br />What a brilliant post I have come across and believe me I have been searching out for this similar kind of post for past a week and hardly came across this.<br /><br />I have two methods and they do almost same thing, but at some most inner nested level one of method have additional command.<br /><br />Java Code:<br />method2(){<br /> ... same code ...<br /> for {<br /> ... same code ...<br /> if{<br /> ... same code ...<br /> }<br /> }<br />}<br /><br /><br /><br /><br /><br /><br />Follow my new blog if you interested in just tag along me<br /><br /><a href="https://asha24.com/blog/step-by-step-java-performance-tuning-methods/" rel="nofollow"><br /> in any </a>social media platforms!<br /><br /><br />Shukran, <br /><br />Anonymoushttps://www.blogger.com/profile/04859983121687046225noreply@blogger.comtag:blogger.com,1999:blog-205030209684246887.post-36102786760766764982018-04-20T10:06:13.340+05:302018-04-20T10:06:13.340+05:30Ohayo,
Muchas Gracias Mi Amigo! You make learni...Ohayo, <br /><br /><br />Muchas Gracias Mi Amigo! You make learning so effortless. Anyone can follow you and I would not mind following you to the moon coz I know you are like my north star.<br /><br /><br />I want to make a project with a simulator of an enigma machine, the one used in the world war 2, but i actually don't know where to begin, because i don't know java very well.<br /><br />In particular, having an array like that char[] sRotor = {'G','N','U','A','H','O','V','B','I','P','W','C',' J','Q','X','D','K','R','Y','E','L','S','Z','F','M' ,'T'};, how can i say, in few codes, if a letter is x, turn it into y, if a letter is z, turn it into t... This for all the letters, creating like pairs.<br /><br />Then, talking about the rotors, when someone presses a letter, the first rotor should move, changing completely the code; when the first rotor changes from 26 (the last letter of the alphabet) to 1, the second rotor should move. Obviously, the same for the second and the third rotor. How can i write that?<br /><br /><br /><br /><br /><br />Very useful post !everyone should learn and use it during their<a href="https://asha24.com/blog/step-by-step-java-performance-tuning-methods/" rel="nofollow"><br /> Learning</a> path.<br />Thanks and Regards<br /><br />Anonymoushttps://www.blogger.com/profile/04859983121687046225noreply@blogger.com