Venkata Sai has Published 72 Answers

What is narrowing in java? Explain.

Venkata Sai

Venkata Sai

Updated on 30-Jul-2019 22:30:26

Java provides various datatypes to store various data values. It provides 7 primitive datatypes (stores single values) as listed below −boolean − Stores 1-bit value representing true or, false.byte − Stores twos compliment integer up to 8 bits.char − Stores a Unicode character value up to 16 bits.short − Stores ... Read More

Explain the importance of import keyword in java?

Venkata Sai

Venkata Sai

Updated on 30-Jul-2019 22:30:26

In Java classes and interfaces related to each other are grouped under a package. Package is nothing but a directory storing classes and interfaces of a particular concept. For example, all the classes and interfaces related to input and output operations are stored in java.io package.There are two types of ... Read More

Advertisements