Question: explanation

Ads

 
 
 

Share on Google+Share on Google+

jenny
explanation
0 Answer(s)      5 years and 5 months 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.

Ads
View Answers
Ads









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
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 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
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
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
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
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
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
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
Tutorials   
Java Spring Hibernate Struts Training What is the meaning of Java Platform? Why Java is a platform independent language? What is the benefits of learning Core Java? Which technology should I learn after Java? What is array in java with example? How to Convert ArrayList to Array? How to substring in Java? How to format number in Java? What is instance variable in Java? How to download MySQL JDBC driver? What is Calendar class in Java? Which is the best Java tutorials for beginners? How to rename a file in Java? How to delete file in Java code? How to get day from date in Java using Calendar? How to get day of week in Java? How to calculate Date Difference in Java? How to compare date in Java? How to declare array in Java? How to calculate average of array in Java? What is Array in Java? write a java program to find the summation of all the integers entered on command line Sum of two numbers using command line arguments in Java How to create and use Array in Java? How to pass command line arguments in Java? How to create Applet Hello World? Appending String efficiently in Java How to append String in Java? How to list even numbers between 1 and 100? How to add BigDecimal in Java? What is Abstraction In Java? Which is best Beginners Java Tutorial? What is java.util package? Create list from array in Java Filter collection in Java 8 What is the best way to filter a Java Collection? Easy way to transform Collection to Array? How to convert Collection to Array in Java? What are Basic Java Language Elements? Advanced Java Tutorials in 2017 Java brief history Best Reasons to learn Java Java Example Codes and Tutorials in 2017 How do I read a large file quickly in Java? Is learning Java worthwhile? How to create first Java Program? Retrieve database from the table dynamically in jsp from oracle using servlet What does core Java include? java What are some way to learn Java quickly?

Ads

 
Advertisement null

Ads