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 for the explanication
View Tutorial          By: Koklen at 2012-06-20 03:40:05

2. Your solution has really helped me and educated me
View Tutorial          By: Tziq at 2011-01-25 08:06:06

3. Thanks for your code. Nice working but I have one
View Tutorial          By: Ravinder Kumar at 2012-01-02 18:01:21

4. as we write:
ob1.t.join();
Does t

View Tutorial          By: abc123 at 2011-04-03 13:33:33

5. can i have a piece of program so that i can improv
View Tutorial          By: miniboss at 2010-11-12 06:09:41

6. good example..easy to understand
View Tutorial          By: aleena at 2010-07-24 21:56:01

7. Hi Dear All

How to do strike-out in

View Tutorial          By: Sandeep Mehta at 2012-11-21 06:54:06

8. a very good explanation
View Tutorial          By: ramakrishna at 2012-12-20 04:06:12

9. It is a good tutorial but I think the "Instru
View Tutorial          By: Jaypee at 2010-10-10 22:40:50

10. Thanks. Your post was clear and worked perfectly a
View Tutorial          By: Suma at 2009-03-05 09:40:08