说出一些常用的类,包,接口,请各举5个 ?

常用的包有:

java.lang包下包括Math、System、StringBuilder、StringBuffer、Runtime、Thread、Runnable等。

java.util包下包括List、Set、Map,以及这些接口的常用实现类:ArrayList、LinkedList、HashSet、TreeSet、HashMap、TreeMap等。

java.io包下包括InputStream、OutputStream、Reader、Writer、FileInputStream、FileOutputStream、FileReader、FileWriter、BufferedInputStream、BufferedOutputStream、BufferedReader、BufferedWriter等

java.sql包下包括Connection、Statement、PreparedStatement、ResultSet等。

java.net包下包括Socket、ServerSocket、URL、URLConnection、DatagramPacket、DatagramSocket等。

如果为让别人感觉你对Android很熟悉,还应该增加一些Android常用的包、类,如:

android.app包下有:Activity、ListActivty、TabActivity、AlertDialog、AlertDialog.Builder、Notification、Service等。

android.content包下有:ContentProvider、ContentResolver、ContentUris、ContentValues、Context等

android.database包下有Cursor等

android.database.sqlite包下有:SQLiteDatabase、SQLiteOpenHelper等

android.graphics包下有Bitmap、BitmapFactory、Canvas、Color、Matrix、Paint、Path等。

android.widget包下有TextView、Button、CheckBox、RadioButton、ListView、GridView、Spinner、Gallery等。

posted @ 2020-12-16 07:38  咔啡  阅读(734)  评论(0)    收藏  举报