REGISTER FREE to Receive Instant Job

Friday, 7 November 2014

Type Casting or Type Conversion in Java

Type Casting / Type Conversion:-
Converting the values of one type to another for the evaluation of an expression is called type casting or type conversion.
Type casting is of two types:-

Upcasting:-
Conversion of lower types to upper types is called upcasting. Upcasting is implicitly performed.
Upcasting is performed according to the following graph:-

Explanation -
Let n be an integer and n = 2n then to store n in memory in integer representation k bits are required.

For e.g
32768 = 215
0 111111111111111

15 bits are required to store 32768.

In floating point representation number is not stored rather its exponent is stored.
i.e
32768 = 215
Then only 15 need to be stored.

Downcasting:- conversion of higher types to lower type is called downcasting. Downcasting need to be explicitly performed.
Example: float f = (float)12

44 comments:

  1. Software developers to create stunning mobile application with ease. Further, they can make use of this platform at free of cost. Java Course in Chennai | Best JAVA Training in ChennaiThanks for your informative post on Java application development. This open source platform assists

    ReplyDelete
    Replies
    1. Java Training Institutes Java Training Institutes Java EE Training in Chennai Java EE Training in Chennai Java Spring Hibernate Training Institutes in Chennai J2EE Training Institutes in Chennai J2EE Training Institutes in Chennai Core Java Training Institutes in Chennai Core Java Training Institutes in Chennai

      Delete
    2. Hibernate Online Training Hibernate Online Training Hibernate Training in Chennai Hibernate Training in Chennai Java Online Training Java Online Training

      Hibernate Training Institutes in ChennaiHibernate Training Institutes in Chennai Java Online Training Java Online Training Java Online Training Java Online Training

      Delete
  2. Excellent information with unique content and it is very useful to know about the information based on blogs. Hadoop Training in Chennai

    ReplyDelete
  3. I found some useful information in your blog,it was awesome to read, thanks for sharing this great content to my vision, keep sharing..selenium Training in Chennai

    ReplyDelete
  4. Really awesome blog. Your blog is really useful for me. Thanks for sharing this informative blog. Keep update your blog.SAP Training in Chennai

    ReplyDelete
  5. Thanks for sharing this valuable information to our vision. You have posted a trust worthy blog keep sharing.Nice article i was really impressed by seeing this article, it was very interesting and it is very useful for me.. Android Training in Chennai

    ReplyDelete
  6. Wonderful tips, very helpful well explained. Your post is definitely incredible. I will refer this to my friend.SalesForce Training in Chennai

    ReplyDelete
  7. very nice blogs!!! i have to learning for lot of information for this sites...Sharing for wonderful information.Thanks for sharing this valuable information to our vision. You have posted a trust worthy blog keep sharing.Oracle DBA Training in Chennai

    ReplyDelete
  8. This is really an awesome article. Thank you for sharing this.It is worth reading for everyone. Visit us:Oracle Training in Chennai

    ReplyDelete
  9. if possible share with us...Very useful information is providing by ur blog.here is a way to find Oracle Training In Chennai

    ReplyDelete
  10. i wondered keep share this sites .if anyone wants realtime training Greens technolog chennai in Adyar visit this blog..performance tuning training In Chennai and more Oracle Training In Chennai

    ReplyDelete
  11. once again sharing this informative blog .Datastage training In Chennai It uses a graphical notation to construct data integration solutions and is available in various versions may visit greens technology chennai in adyar Greens Technologys Training In Chennai

    ReplyDelete
  12. i gain the knowledge of Java programs easy to add functionalities play online games, chating with others and industry oriented coaching available from greens technology chennai in Adyar may visit.Core java training In Chennai

    ReplyDelete
  13. I have read your blog and I got very useful and knowledgeable information from your blog. It’s really a very nice article Greens Technologies Training In Chennai

    ReplyDelete
  14. fantastic presentation .We are charging very competitive in the market which helps to bring more oracle professionals into this market. may update this blog . Oracle training In Chennai which No1:Greens Technologies In Chennai

    ReplyDelete
  15. Your blog is really awesome... Its really helpful for me. Suppose if anyone want to find real time coaching center.recently i did some blog may visit Greens Technologys Training In Chennai

    ReplyDelete
  16. Excellent post, I agree with you 100%! I’m always scouring the oracle for new information and learning whatever I can, and in doing so I sometimes leave post comments on blogs.Oracle Training In Chennai

    ReplyDelete
  17. Usually I am able to add links to other websites or pages within Informix Training In Chennai

    ReplyDelete
  18. Rajasthan Gram Panchayat 2252 Sathin Recruitment 2015-16

    Well written and useful stuff you share with us. I want more this kind of information from you..........

    ReplyDelete
  19. Upgrading ourselves to the upcoming technology is the best way to survive in this modern and fast paced technology world. Reading contents like this will create a positive impact within me. Thanks for writing such a valuable content. Keep up this work.

    JAVA Training in Chennai | J2EE Training in Chennai | JAVA Training | Best JAVA Training in Chennai

    ReplyDelete
  20. Latest Govt Bank Jobs 2016


    It was helpful and will really help me in building my new blog traffic and increasing my readers per day......................

    ReplyDelete
  21. Very useful questions in Java Concepts if you have questions in frameworks kindly please let me know so that it will be beneficial for me. I am doing Java Training in Chennai but i am having tough time in cracking job.

    ReplyDelete
  22. really truly post with lots of latest android apps thanks sharing ..:) Buzz For Android

    ReplyDelete
  23. Java is programing language which is used in almost all the applications and games which are on the web. Java is being used extensively and it will be used extensively in near future. So getting trained in Java will surely be helpful.
    Java training in Chennai | Java training institute in Chennai | Java course in Chennai

    ReplyDelete
  24. MarketPress sets the standard for WordPress eCommerce arrangements, giving an exquisite shopping background that backings all real installment passages and permits you to effortlessly oversee dissemination and shopping costs with custom transportation alternatives.
    Wordpress Online Shop And Plugins Store

    ReplyDelete
  25. Really cool post, highly informative and professionally written and I am glad to be a visitor of this perfect blog, thank you for this rare info! , Regards, servicenow training in hyderabad

    ReplyDelete
  26. My Arcus offer java training with 100% placement. Our java training course that includes fundamentals and advance java training program with high priority jobs. java j2ee training with placement having more exposure in most of the industry nowadays in depth manner of java

    java training in chennai

    ReplyDelete
  27. nice! thank you so much! Thank you for sharing. Your blog posts are more interesting and impressive. I think there are many people like and visit it regularly, including me.
    192.168.1.1

    ReplyDelete
  28. This comment has been removed by the author.

    ReplyDelete
  29. This is my first visit to your blog, your post made productive reading, thank you. dot net training in chennai

    ReplyDelete
  30. The share your really gives us excitement. Thanks for your sharing. If you feel tired at work or study try to participate in our games to bring the most exciting feeling. Thank you!
    hotmail sign in | red ball game | 192.168.1.1

    ReplyDelete
  31. This is a great article, I have been always to read something with specific tips! I will have to work on the time for scheduling my learning.
    Selenium Training in Chennai

    ReplyDelete

  32. This article is so informatic and it really helped me to know more about the Selenium Testing. So keep updating the content regularly.
    Selenium Training in Chennai | Selenium Training | Selenium Course in Chennai

    ReplyDelete

Popular Posts

Powered by Blogger.

About Me

My photo

JobsAcid is a 'job search engine' to provide finding a job on the internet easier for the user. It has designed as huge selection of job offerings on the same search engine.