SchoolConnects

Other Chapters For 12th

Tags

12th Class Chapter No 6 - Primitive values, wrapper classes, types and casting in Computers for ISC

Wrapper classes are objects encapsulating primitive Java types. Each Java primitive has a corresponding wrapper: boolean, byte, short, char, int, long, float, double. Boolean, Byte, Short, Character, Integer, Long, Float, Double.
 
Wrapper classes are used to convert any data type into an object. The primitive data types are not objects; they do not belong to any class; they are defined in the language itself. Sometimes, it is required to convert data types into objects in Java language. 
 
In Java, there are two types of casting:
  1. Widening Casting (automatically) - converting a smaller type to a larger type size. byte -> short -> char -> int -> long -> float -> double.
  2. Narrowing Casting (manually) - converting a larger type to a smaller size type. double -> float -> long -> int -> char -> short -> byte.
Posted in 12th on August 05 2020 at 02:11 PM

ISC 12th CLASS Computers OTHER CHAPTERS

  • 12th-class Computers Chapter 14

    Big O notation is the most common metric for calculating time complexity. It describes the...
  • 12th-class Computers Chapter 13

    In computer science, a data structure is a data organization, management, and storage format...
  • 12th-class Computers Chapter 12

    Polymorphism means "many forms", and it occurs when we have many classes that are related to...
  • 12th-class Computers Chapter 11

    The process in which a function calls itself directly or indirectly is called recursion and the...
  • 12th-class Computers Chapter 10

    An array is a collection of like variables that share a single name. Usually, the array size is...
  • 12th-class Computers Chapter 9

    Functions/methods (as abstractions for complex user defined operations on objects), functions...
  • 12th-class Computers Chapter 8

    Statements; conditional (if, if-then-else, switchbreak, ?: ternary operator), looping (for,...
  • 12th-class Computers Chapter 7

    Variables as names for values; expressions (arithmetic and logical) and their...
  • 12th-class Computers Chapter 5

    An object is an abstract data type with the addition of polymorphism and inheritance. Rather...
  • 12th-class Computers Chapter 4

    Simple: Java is a simple language because its syntax is simple, clean, and easy to understand....

Comments (0)

No login
×