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. i wanted to know the rules how they are used like
View Tutorial          By: shlok gupta at 2012-03-24 11:44:24

2. it is nice but please give simple example like are
View Tutorial          By: red at 2009-12-03 23:07:37

3. i want simple program of function used in recursio
View Tutorial          By: manish at 2009-05-19 01:03:19

4. great example for beginners. Thank you
View Tutorial          By: kumar at 2011-11-24 08:15:14

5. In line No. 23, change stmd to stmt.
Re

View Tutorial          By: Rishi Raj at 2011-07-08 13:50:11

6. Thank you very much for such a nice topic
View Tutorial          By: CHANDAN at 2012-11-01 04:40:02

7. </application>
<uses-permission an

View Tutorial          By: saurabh at 2012-01-17 05:00:21

8. Thanks so much useful to me.
View Tutorial          By: Bhuvan at 2012-05-31 14:57:57

9. sir, i want if,if else,nested if..... concept in o
View Tutorial          By: krishna at 2015-08-14 08:58:01

10. tnx.
i have problem why is that to slow???

View Tutorial          By: rozhin at 2015-08-21 07:54:42