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. It's a good article.Would you please elaborate th
View Tutorial          By: Chandra at 2015-10-05 12:24:24

2. Hi,

I tried this script with noki

View Tutorial          By: sravan at 2009-07-11 11:17:45

3. very nice explanation of STATIC....HAY man , you j
View Tutorial          By: harkeet at 2012-12-18 17:48:43

4. it is very nice example of overloading when i read
View Tutorial          By: narendra saini at 2012-04-20 04:03:56

5. I have maked all you said and when I open jsp I am
View Tutorial          By: ismail at 2011-03-16 04:08:53

6. Thank you very much. Now I know how to make an abs
View Tutorial          By: Alex at 2011-01-17 03:35:22

7. how i can used inheritence ?
View Tutorial          By: samee at 2008-02-16 12:54:27

8. super
View Tutorial          By: chalamareddy at 2012-10-08 18:08:29

9. This example is very good and useful. I request yo
View Tutorial          By: Ambarisha Malladi at 2010-02-10 22:50:38

10. hi guys,

i want some

View Tutorial          By: THANGA at 2012-03-19 15:24:38