explanation

explanation

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.

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
explanation - Java Beginners
Java Code Explanation
Java Code Explanation
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 Select Query
This tutorial contain the explanation of Select clause
Hibernate Session
This section contains the explanation of hibernate session
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
Exception handling in Java Programming Examples
the detailed explanation of these program. You will learn how to handle standard Java
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
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
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
Exception handling in Java Programming Examples
Exception handling in Java. We have also provided you the detailed explanation
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
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
getParameterNames() Method Of The Request Object
Example of getParameterNames() Method Of The Request Object in a JSP page.       This section gives you the detailed explanation about the getParameterNames
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 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
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 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
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
Square Elements of Two Dimensional Array
the best explanation with mathematical operation.  Description of progarm: ADS
String lastIndexOf(String str)
String lastIndexOf(String str)       In this section, you will get the detailed explanation about the lastIndexOf(String str) method of String class. We are going to use
String Determining a Character's Unicode Block
String Determining a Character's Unicode Block        In this section, you will get the detailed explanation about the UnicodeBlock() method of String class. We are going to use
String lastIndexOf(int ch)
String lastIndexOf(int ch)       In this section, you will get the detailed explanation about the lastIndexOf(int ch) method of String class. We are going to use lastIndexOf(int
String substring(int beginIndex, int endIndex)
String substring(int beginIndex, int endIndex)       In this section, you will get the detailed explanation about the substring(int beginIndex, int endIndex) method of String
String Concat()
String Concat()       In this section, you will get the detailed explanation about the Concat() method of String class. We are going to use Concat() method of String class
String getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin)
String getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin)       In this section, you will get the detailed explanation about
String intern()
String intern()       In this section, you will get the detailed explanation about the intern() method of String class. We are going to use intern() method of String
Changing the value of Array in Java
array program is provided Java application program about the explanation
String equalsIgnoreCase(String Str)
String equalsIgnoreCase(String Str)       In this section, you will get the detailed explanation about the equalsIgnoreCase(String Str) method of String
What is a Tag Library in JSP
What is a Tag Library in JSP       This section provides you the detailed explanation of the Tag Library in JSP. In the Java Server Pages Technology
String copyValueOf(char[] data, int offset, int count)
String copyValueOf(char[] data, int offset, int count)       In this section, you will get the detailed explanation about the copyValueOf(char[] data, int offset
String indexOf() Method
String indexOf() method in Java
String indexOf(String str, int fromIndex)
String indexOf(int ch, int fromIndex)
java
java  explanation of usage of args in main method
Introduction to PHP Array

Ads