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



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. MySQL Connector/J supports only TCP/IP connections
View Tutorial          By: Java Training Institute In Chennai at 2012-09-13 12:37:44

2. Thanks,It's perfect solution,I solved my probleam
View Tutorial          By: Suryaprakash Raghuwanshi at 2009-07-04 19:06:24

3. Hi, this was useful. how can integrate j2me progra
View Tutorial          By: karthik at 2013-01-23 10:02:02

4. Can anybody tell me how to send and receive SMS us
View Tutorial          By: Bharat Lahori at 2010-02-04 07:14:19

5. thanks to this site which get me understand about
View Tutorial          By: Sayak at 2012-10-08 15:57:25

6. This is an old method although it works. The bette
View Tutorial          By: Emiley at 2013-01-11 03:56:02

7. I get an error " javax.mail" does not ex
View Tutorial          By: bhavin at 2009-02-03 05:50:08

8. hi,
i am safeer, i am try this program in

View Tutorial          By: Safi at 2009-05-22 22:32:04

9. Like every other Java recursion example, this exam
View Tutorial          By: Uriah at 2010-05-08 18:59:16

10. Please provide some more examples ...It will be ve
View Tutorial          By: it interview questions at 2012-09-29 05:07:55