- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How is down-casting possible in Java?
Yes, a variable can be downcast to its lower range substitute by casting. It may lead to data loss although. See the example below −
Example
public class Tester { public static void main(String[] args) { int a = 300; byte b = (byte)a; System.out.println(b); } }
Output
It will print output as −
44
- Related Articles
- What are up-casting and down-casting in Java?
- What is the difference between up-casting and down-casting in Java?
- What is a casting expression in Java?
- Java Type Casting Examples
- What are the differences between Widening Casting (Implicit) and Narrowing Casting (Explicit) in Java?
- What is Casting operators in C++?
- What is Type casting in C#?
- Is it possible to scroll down in a webpage using Selenium Webdriver programmed on Python?
- Type casting in JavaScript.
- Casting in Rust Programming
- Type Casting operators in C++
- Is it possible to instantiate Type-parameter in Java?
- Is it possible to create static constructor in java?
- How to scroll down a webpage in selenium using Java?
- Explicit Type Casting in Python Language

Advertisements