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



Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


jenny
explanation
0 Answer(s)      3 years ago
Posted in : Java Beginners


public int compareTo(Object Student) throws ClassCastException {
                if (!(Student instanceof StudentMarks))
                       throw new ClassCastException("Not a Student!");
                int mark = ((StudentMarks) Student).getMarks();
                return this.marks - mark;

Hi,can I know what is the meaning for the above coding?I have find the explanation in internet,but not very clear about it. Thank you.


Advertisement
View Answers

Related Tutorials/Questions & Answers:
explanation
the explanation in internet,but not very clear about it. Thank you
example explanation - Java Beginners
example explanation  can i have some explanation regarding the program given as serialization xample....  Hi friend, import java.io.*; import java.util.*; import java.util.Date; import java.io.Serializable
Advertisements
explanation to your code - Java Beginners
explanation to your code  sir, I am very happy that you have responded to my doubts in no time.Thank you very much.I saw the code u sent.Can i... classes.sir i need your brief explanation on this code and also your guidance.this
huffman code give the explanation for this code
huffman code give the explanation for this code  package bitcompress; class Compress extends BitFilter { private boolean encode_flag = false; private BitFilter next_filter = null; private int value; private
huffman code give the explanation for this code
huffman code give the explanation for this code  package bitcompress; class Compress extends BitFilter { private boolean encode_flag = false; private BitFilter next_filter = null; private int value; private
i need project for shopping cart in struts 1 with the oracle database and give clear explanation for how to execute it in my eclipse
i need project for shopping cart in struts 1 with the oracle database and give clear explanation for how to execute it in my eclipse  i need... explanation for how to execute it in my eclipse and where to copy the files as i am
Hibernate Session
This section contains the explanation of hibernate session
Hibernate Select Query
This tutorial contain the explanation of Select clause
Hibernate Disjunction.
This section contains explanation of Hibernate disjunction with example
String indexOf() Method
String indexOf() Method       In this section, you will get the detailed explanation about the indexOf() method of String class. We are going to use indexOf() method of String
Java Next()
Java Next()       In this section, you will get the detailed explanation about the next() method of interface Iterator. We are going to use next() method of interface Iterator
Java nextElement()
Java nextElement()       In this section, you will get the detailed explanation about the nextElement() method of interface Enumeration. We are going to use nextElement() method
Java hasMoreElement()
Java hasMoreElement()       In this section, you will get the detailed explanation about the hasMoreElement() method of interface Enumeration. We are going to use hasMoreElement
getRequestURI() Method Of The Request Object
getRequestURI() Method Of The Request Object       This section gives you the detailed explanation of the getRequestURI() method of the request object
charAt() Method In Java
charAt() Method In Java       In this section, you will get the detailed explanation about the charAt() method of String class. We are going for using charAt() method
getParameterNames() Method Of The Request Object
getParameterNames() Method Of The Request Object       This section gives you the detailed explanation about the getParameterNames() method of the request object. You
Java remove()
Java remove()       In this section, you will get the detailed explanation about the remove() method of interface Iterator. We are going to use remove() method of interface Iterator
getAttributeNames() Method Of The Request Object
getAttributeNames() Method Of The Request Object       This section provides you the detailed explanation of the getAttributeNames() method of the request
String indexOf(String str)
String indexOf(String str)       In this section, you will get the detailed explanation about the indexOf(String str) method of String class. We are going to use indexOf(String str
String substring(int beginIndex)
String substring(int beginIndex)       In this section, you will get the detailed explanation about the substring(int beginIndex) method of String class. We are going to use
String lastIndexOf(String str, int fromIndex)
String lastIndexOf(String str, int fromIndex)       In this section, you will get the detailed explanation about the lastindexOf(String str, int fromIndex) method
String indexOf(int ch)
String indexOf(int ch)       In this section, you will get the detailed explanation about the indexOf(int ch) method of String class. We are going to use indexOf(int ch
String indexOf(int ch, int fromIndex)
String indexOf(int ch, int fromIndex)       In this section, you will get the detailed explanation about the indexOf(int ch, int fromIndex) method of String class. We are going
String indexOf(String str, int fromIndex)
String indexOf(String str, int fromIndex)       In this section, you will get the detailed explanation about the indexOf(String str, int fromIndex) method of String class. We
String lastIndexOf(int ch, int fromIndex)
String lastIndexOf(int ch, int fromIndex)       In this section, you will get the detailed explanation about the lastindexOf(int ch, int fromIndex) method of String class. We
User Login and Registration application
User Login and Registration application          This is the complete explanation of the application in JSF ( Apache MyFaces) with the combined help
String regionMatches()
String regionMatches()       In this section, you will get the detailed explanation about the regionMatches() method of String class. We are going to use regionMatches() method
Square Elements of Two Dimensional Array
the best explanation with mathematical operation.  Description of progarm
 

 

 

DMCA.com