Comment on Tutorial - Type Casting in Java By Saravanan



Comment Added by : kishoree koli

Comment Added at : 2013-03-14 03:00:31

Comment on Tutorial : Type Casting in Java By Saravanan
Class TypeCasting
{
public static void main(String k[])
{
float sum=0.0f;
int a=10;

sum=sum+(float)a;
System.out.print("sum="+sum);
System.out.println("a="+a);
}
}


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. Typecasting proved very much helpful to me...esp.
View Tutorial          By: itan at 2010-05-04 01:30:24

2. i want to know about java related topic in simple
View Tutorial          By: saurav at 2010-04-29 04:39:55

3. thank you so much. i've been fixing this problem o
View Tutorial          By: yo at 2011-06-05 13:25:37

4. Please help here...
I tried both 0300460423

View Tutorial          By: Zafar Iqbal at 2013-04-02 20:14:29

5. The smiple easy and best way is :)
--------

View Tutorial          By: Sandhya at 2012-06-21 06:08:25

6. hi sr.
do u have any idea , how to convert

View Tutorial          By: gohila at 2012-08-15 14:31:31

7. How to connect Oracle java cloud service database(
View Tutorial          By: prakash at 2015-08-27 16:19:04

8. pls give me code for exact communication between
View Tutorial          By: SIRAJ at 2009-02-19 06:24:10

9. Including the required mail properties should solv
View Tutorial          By: Rajesh Vaddi at 2011-12-13 23:55:15

10. Its working perfectly for me.Thanks so much for pr
View Tutorial          By: Sunpenn at 2009-10-13 00:53:09