Latest Tutorials| Questions and Answers|Ask Questions?|Site Map




Have Programming Question? Ask it here!
 
 
 


samar
Java type casting
1 Answer(s)      3 years and 10 months ago
Posted in : Java Interview Questions


What is Downcasting ?

Advertisement
View Answers

October 27, 2010 at 5:50 PM


Hi,

Here is the answer,

Casting is nothing but data type conversion. Downcasting is the casting from a general to a more specific type, i.e. casting down the hierarchy.eg: double to byte, long to int etc.

Up casting is the conversion of data type from lower range data type to higher data type eg: int to long, byte to long, int to double etc...

Thanks.



Related Tutorials/Questions & Answers:
type casting - Java Beginners
type casting and conversion  I am beginner and my query is Importance of type casting and conversion  Hi friend,public class TypeCasting...://www.roseindia.net/java
Java Type Casting - Java Beginners
Java Type Casting  what is object type casting? give some example with related
Advertisements
Java type casting
Java type casting  What is Downcasting
Java type casting
Java type casting  Can a Byte object be cast to a double value
java type casting problem - Java Beginners
java type casting problem  what is type casting? what is the type of type casting? explain with example?  Hi Friend, Please visit the following link: http://www.roseindia.net/java/beginners/TypeCasting.shtml
type casting
type casting  what is type casting
Type casting in java
Type casting in java In this section you will learn about type casting in java. Type casting is to convert one type to another type. Java support two types... a double type cast to int type    Reference type casting : In java type
Type casting
Type casting  how to type cast a string value to byte array
type casting
List (object type) <Object> totalList(int pi){ try{ Query q...type casting  <--bean class-->method calllist is of object type...){ return null; } how to type cast object type to entity type
type casting
type casting  int n=20; n=sizeof((char)(float)n); what is n value
type casting purpose
type casting purpose  what is type casting , could u explain with practical example
Type casting the returned value of a method.
Type casting the returned value of a method.  Hi, How do you type cast the returned value of a method so that you can avoid creating a temporary... know that the component returned by panel.getComponent(i) will be of type
Casting in java - Java Beginners
Casting in java   Hi, I want to know Casting in detail... is implicit casting and Explicit casting . Implicit casting : Ex - assign... Explicit casting : Ex - Assign superclass variable to subclass
Casting (Type Conversion)
casting. In java one object reference can be type cast into another object reference. This casting may be of its own type or to one of its subclass or superclasss... Casting (Type Conversion)      
What is casting?
What is casting?   Hi, What is casting? thanks
eraser type generics in java
eraser type generics in java  Explain eraser type generics in java with example
methods type - Java Beginners
methods type in Java  Give me an example programs of methods types in Java
Reference type Vs Object type. - Java Beginners
Reference type Vs Object type.  Can anyone explain the exact.... They never contain the object. C++ object variables may be either, but Java supports only object references. For Example : Book bookvar = new Book("Java
PHP Type Juggling
Type Juggling In PHP: Unlike other programming languages like C,C++ and Java... a float value to a variable then it becomes float type and if we assign... type, but if we add one integer and one float type variable then the result
different type input in java
different type input in java  hiiiii... get input different different type like as DataInputStream,Scanner i want to get source code of these all type of input method. thank   Java Read through DataInputStream: import
Type Conversion - Java Beginners
Type Conversion   Hai, rajanikanth, Please explain how to convert from integer value to a string value .In a database operation i want to convert it.   hi jagadish Suppose int num = 10; String id = ""+num
Getting A File's Mime Type In Java
Getting A File's Mime Type In Java  Getting A File's Mime Type In Java
How to Type in japanese in java Textfield?
How to Type in japanese in java Textfield?  Hello Sir/madam; Am creating an application in java in which i want to get a japanese String input from user.User needs to type in japanese in the textField.but I dont know how to type
objective type question - Java Beginners
objective type question  Hi, Thakns for properly reply,I want to core java objective programming question plz let me url of this problem Thanks Ragini  You can find in www.javafaqs4u.com  
Data type in java
Data type in java In this section we will tell you about data type in java... type of data, which has an initial value 1. There are two data type in java... :  Apart from int type there are seven other primitive data types in java
java- jdbc with type 4 driver
java- jdbc with type 4 driver  My program code is----- import java.sql.*; import java.lang.* ; import java .io.*; import java.util.*; import...*; import java.lang.* ; import java .io.*; import java.util.*; import
object retun type - Java Beginners
object retun type  Hi, i have to create a method which should have return type of object . The object should contain 'list of filenames' array and a boolean field 'isVal'. Can anybody help
Date type typecasting - Java Beginners
Date type typecasting  Can i type cast Date object of java.util.* to java.sql.* Date Object? if so how? Refer to the following url http.... Date.parse gives you a result of type java.util.Date.Unfortunately for JDBC you need
Array list in Java - arraylist type error
Array list in Java - arraylist type error  I am using Array list in Java but when i compile i get array list type error. Can anyone please explain what is array list type error and why it occurs
java method return type : - Java Beginners
java method return type :  i have one question regarding methods,,, if we create a method with return type as class name (public employee addemp(int,int))what should be its return type.....and if any know this pls explain
Java Error In comapitable Type in statement - Java Beginners
Java Error In comapitable Type in statement  Here I want to Check wheter entered id is already Exists in Database or Not with Access Database, Plz Help Me Sir import java.io.*; import java.awt.*; import javax.swing.
Which JDBC Type Using - Java Beginners
Which JDBC Type Using  As there are 4 types of JDBC driver. I wanted to know: How would one come to know that which jdbc type any web application is using (if Db is oracle or mysql or MSSQL)? Thanks, Sushma  Hi
one attribute of type int - Java Beginners
one attribute of type int  hi friends can anyone help me... attribute of type int to represent a month (1 for January, 2 for February, and so... function that returns the next month as a value of type month. Test your
Java File content type
Java File content type In this section, you will learn how to get the content type of the specified file. Description of code: This is essential part of the file. In various applications, there is a use of content type. Here we
Java error illegal start of type
Java error illegal start of type       The Java error illegal start of type... start  type, for this we have a class name Illegalstartoftype.Inside
Java Get Mime Type
Java Get Mime Type      ... in Java.  Go through the given example to find out, how to get mime type.     Syntax for getting mime type in Java import 
How to Create any type of Reports in Java - Java Beginners
How to Create any type of Reports in Java  Hello Sir ,How I can create any type of Reports like Crystal Reports etc(Student Result Report) in Java Application,plz Help Me Sir
Java get File Type
Java get File Type       This section illustrates you how to get the file type. In the given...) of class JFileChooser returns the file type.       Here
Java program to get data type of column field
Java program to get data type of column field       In this example java program we have to get the data type of the database table fields. For this purpose we have established
process of compiling and running java program
process of compiling and running java program  Explain the process of compiling and running java program. Also Explain type casting
What is the return type of execute mehtod in jdbc - Java Beginners
What is the return type of execute mehtod in jdbc  Hi Deepak, u posted this answer. " Whatever it may be the statement type, like.... " String s="raja" , Here return type of s is string
Java example program to get Operating System type or architecture
Java example program to get Operating System type or architecture       java get OS type In java...:\javaexamples>java GetOSArchitecture Operating system type =>x86 Download
Problem with Double type Value in Access Database - Java Beginners
Problem with Double type Value in Access Database  Hello sir I have store Double Type Value in MS Access Databse,but when I search Record then it Gives Round Figure Value related with Percentage and I want to Store and Retrieve
Hi Friend. on Default Data type Values - Java Beginners
Hi Friend. on Default Data type Values  Hi ... I have doubt on Default Data types... Is it Possible to print the Dafault Values..If it s so, Check this code..How to Print d Default Values
type mismatch
type mismatch  Statement s= con.createStatement(); this line gives error of "type mismatch" I am using eclips nd new to servlet nd JDBC, Please help me, Thank you
data type
data type  which data type is used to store video file in mysql databse
data type
data type  what are the date types in the java and vb.net? what is the difference between java and vb.net?   Hi Friend, java data types are: byte short int long float double char boolean
How can I write a GUI stack program by Java to push Image files instead of other data type items?
How can I write a GUI stack program by Java to push Image files instead of other data type items?   How can I write a GUI stack program by Java to push Image files instead of other data type items? for the push instruction I
FTPClient : Get System Type
This section explain how to get system type by using method of FTPClient class in java
writing document (.doc) file from java with format such as font type, font style
writing document (.doc) file from java with format such as font type, font style  Can anyone help me how can i write a java code to write a string with format such as font type and style to a document file? Thanks in advance
Advertisements
 

 

 

DMCA.com