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. Awesome and straight forward
View Tutorial          By: Nag at 2012-11-07 23:47:10

2. thankssss to prograem
View Tutorial          By: maha at 2010-05-21 05:14:36

3. i think this ist perfectly fine :) if you don't kn
View Tutorial          By: julian at 2011-03-07 05:54:08

4. comm.jar file for windows not available in sun. ca
View Tutorial          By: borus at 2015-03-25 07:19:57

5. hi MR. A.Balaji
can u help me how you have

View Tutorial          By: mjnanthini at 2010-10-03 23:04:35

6. The actual code to write F2 is:
f2.write(bu

View Tutorial          By: João at 2012-04-11 19:22:14

7. After edit tomcat-user file and restart sevice ..i
View Tutorial          By: Rajesh Perumal at 2013-01-08 06:29:21

8. thanx a lot for this tutorial brother!!!!! a great
View Tutorial          By: manas at 2013-04-01 17:18:00

9. It will be better, if you expalin by examples codi
View Tutorial          By: Parwez at 2012-06-18 08:03:45

10. Good One..
View Tutorial          By: Subhranil Mukherjee at 2015-03-11 07:22:18