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. really helpfull and gets all the stuff what u want
View Tutorial          By: yash at 2009-10-25 12:28:57

2. hi.....
if we have number of fieldsl ike na

View Tutorial          By: shailesh at 2011-12-15 07:10:34

3. thanks a lot that helped.. =D
View Tutorial          By: Karthik at 2008-11-16 02:27:53

4. Can any budy plz send me a source code of Sending
View Tutorial          By: vilas at 2010-03-23 20:38:08

5. can this code communicate with other pc that using
View Tutorial          By: lolo at 2011-10-28 09:14:30

6. your web site is very useful for students
View Tutorial          By: aathithi at 2008-06-22 22:41:07

7. @Amit Shrivastava : Dear Amit I have tried the sam
View Tutorial          By: Sanjay at 2015-05-14 19:15:51

8. It works great,
my code looks like this:
View Tutorial          By: Anonymous at 2009-04-11 04:19:28

9. Thank you very much sir.
One can simply exe

View Tutorial          By: rudhin at 2013-05-10 12:32:57

10. When copying this code into my java IDE, should i
View Tutorial          By: Barabas at 2010-02-11 03:57:09