ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Core Java  >>  Java J2EE  >>  Java Related
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
What is casting?
 Question Submitted By :: Varsha
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is casting?
Answer
# 1
Casting is a mass production process which involves molten 
materials (such as metals, plastics or resins) being poured 
into a mold, allowed to solidify and then extracted for 
use. Casting can be thought of as a method for reproducing 
something - whether a mere part or a single unit by itself.

Casting is a process that can be used to manufacture 
complex parts which would prove too expensive or time-
consuming to produce using other methods such as cutting or 
shaping these from solid materials.
 
Is This Answer Correct ?    2 Yes 4 No
Rajashree
 
  Re: What is casting?
Answer
# 2
The object will be convert into another object type through 
casting. This is known as cating
 
Is This Answer Correct ?    3 Yes 0 No
Dsr
 
 
 
  Re: What is casting?
Answer
# 3
Casting means converting values from one data type  to  
other data type.For example to convert the  int values to 
float type vlaues.

Types of casting:
   1. Downcasting -source is larger than destination type
   2. upcasting   - Source is smaller than destination type.

casting can be applicable to both primitive type and Object 
type.

primitive type - convert numeral to floating point and vice 
versa.
Object type - converting from subclass to super class or 
vice versa.
             superClassObj = subClassObj;
 
Is This Answer Correct ?    2 Yes 0 No
Vijayakumar Chinnasamy
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
Difference between String and StringBuffer. IBM3
I have 100 records in a table with two rows. I need to display 10 records per page like Google Search. I need only the Logic(Pagination) in Pure Java. No JSP and all..Thanks in Advance... Cybernet2
what is wrapper class and its uses?  2
What is an event?  1
what is difference between validation.xml & validation rules.xml? BirlaSoft5
What is the need of "creating and throwing an UserdefinedException" when the "Exception" class is already available?  4
What is a package?  2
Is it possible to create Userdefined Unchecked Exception also?If Yes, give an example?  2
Is java supports multiple inheritance? explain? Inforica11
As a developer what steps do you take to improve the performance?  3
jdbc drivers? Wipro7
explain oops concepts with examples? TCS16
Why java Don't Support Multiple interitence ABC7
suppose string s1="rajnish"; string s2="bhaskar"; then what will be happend ? Fidelity6
In the HashMap, we know the values but we dont know the key, then how can we get the key from HashMap ????? Kanbay3
"We cannot create an object of interface but we can create a variable of it". Discuss the statement with the help of an example. (Plz help us to provide immediately.)  2
what is difference between servletconfig and servletcontext? AMDOC3
printstream class method println() is calling using System class and its static object out .how it is explain any one in detail with example ? TCS1
what is the life cycle of jsp? Photon2
using equals method overriding which objects are compared?i.e same class objects or other class objects?Explain me.  3
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com