By default, 10 packages are imported and can also be imported any package by using import statement.
To see, default import packages, we can use following command.
Importing java.sql package.
Listing import packages and it will show available accessible packages.
Now number of packages are 11 including new one java.sql.*
Jshell provides various useful commands that we can use to modify environment, manage code and to get code related information. Following are the useful information.
Command /vars to show variables
To get all written source code, use /list
Attention reader! Don’t stop learning now. Get hold of all the important Java and Collections concepts with the Fundamentals of Java and Java Collections Course at a student-friendly price and become industry ready.
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.