Comment on Tutorial - instanceof sample program in Java By Abinaya



Comment Added by : John

Comment Added at : 2012-07-13 17:34:42

Comment on Tutorial : instanceof sample program in Java By Abinaya
if(a instanceof C)
System.out.println("a can be cast to C");
System.out.println();

How can you cast it please?

Thanks, great tutorial.


View Tutorial



Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. Thanks a lot man !
PEace

View Tutorial          By: Karan Vohra at 2012-08-30 02:15:05

2. Thanks so much for the tutorial!! Was extremely us
View Tutorial          By: Debarupa at 2012-05-10 20:23:28

3. Hello Sir,

Is there a way to use JS

View Tutorial          By: rohit at 2008-04-02 09:07:41

4. It's helpful to me.. to understand stand clear pic
View Tutorial          By: Ansari at 2010-08-18 10:22:54

5. oh u solved my one of the hardest problem through
View Tutorial          By: zehra at 2012-01-28 19:44:14

6. i'm really hoping this example was wrote before 19
View Tutorial          By: Anonymous at 2009-06-07 21:00:18

7. Thank you ... was very helpfull indeed !!
View Tutorial          By: Avinav at 2011-02-09 15:46:37

8. Thanks for your nice article.I learned a lot
View Tutorial          By: Mahyar at 2012-08-12 12:09:36

9. What if the MIDlet has an sms push registry, but o
View Tutorial          By: indra at 2011-07-08 09:21:54

10. tnx man that was short and well explained...
View Tutorial          By: jsf noob at 2012-02-02 13:24:12