Primitive data types are built in data types which are a part of the wrapper classes. These wrapper classes are encapsulated in the java.lang package. Non primitive datatypes like Scanner class are a
Advertisements
प्रश्न
Primitive data types are built in data types which are a part of the wrapper classes. These wrapper classes are encapsulated in the java.lang package. Non primitive datatypes like Scanner class are a part of the utility package for which an object needs to be created.
- To which package the Character and Boolean classes belong?
- Write the statement to access the Scanner class in the program.
एक पंक्ति में उत्तर
Advertisements
उत्तर
- java.lang
-
Scanner sc=new Scanner(System.in);
shaalaa.com
Data Types
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
