Discussion :: Declarations and Access Control - General Questions (Q.No.11)
|Hemavathy said: (Apr 2, 2012)|
|Can you please explain this in brief? I am new to java programming. What do you mean by narrowing conversion and widening conversion?|
|Amaz said: (Apr 24, 2012)|
First you learn the type casting in java.mainly there are two types of type-castings are available,these are up-casting and down-casting
This leads a concept of narrowing and widening conversion hope you get the answer.
|Sagar said: (Mar 1, 2014)|
|What is the narrowest return type of the main written program?is it double or int?|
|Paul said: (Nov 23, 2015)|
|Please tell: By "widest valid returnType" do you mean the largest number of bits in the return type? If so, both "long" and "double" are 64 bits.
It seems either of these answers are valid for the question. Please correct me and explain.
Post your comments here:
Email : (optional)
» Your comments will be displayed only after manual approval.