ITP

BCA - Java Programming

Import Statement

In : BCA Subject : Java Programming

The java import keyword is used to import already existing classes in Java, into our program.
for ex: in our program if we say import java.util.*; it means we are importing all the classes inside the package java.util into our current class and we can use those classes here.
If you try to use any external class without importing it, you will get a compile time error. The import keyword tells the compiler the places where it has to look for external class references.

About us

A truly open platform where you may ask questions and get answers. We also provide comprehensive and easy-to-understand answers to question papers.  discover...

Site status

Flag Counter

Privacy Policy

Sitemap