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. Ur article is very intersting and very usefull me
View Tutorial          By: SIVAKUMAR at 2011-11-22 11:14:05

2. hi friends,
can i write the same jdbc code

View Tutorial          By: mahesh at 2012-01-05 05:09:38

3. thank you
View Tutorial          By: latif mohammad khan at 2013-01-18 09:53:18

4. Please resolve this problems :

ja

View Tutorial          By: madhusudhakar at 2014-10-24 06:11:10

5. short notes to struts,but i expect more explanatio
View Tutorial          By: jayashri at 2011-11-23 18:24:07

6. Good hello world to start with struts2 provided yo
View Tutorial          By: Boby Thomas at 2009-04-01 22:25:03

7. #include <iostream>
using namespace s

View Tutorial          By: Jorgeus at 2012-08-30 09:07:03

8. can u give a gud example on command line arguments
View Tutorial          By: shravan at 2010-04-09 23:11:18

9. Hi! I'm working on Ubuntu 10.04

At

View Tutorial          By: Rushabh at 2011-01-12 06:22:43

10. good
View Tutorial          By: rajesh sharma at 2011-07-18 05:20:56