What are the practical benefits, if any, of importing a specific class rather than an entire package (e.g. Import java.net.* Versus import java.net.socket)?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Core Java Interview Questions

What are static blocks in java ?

0 Answers  


What are class members by default?

0 Answers   Hexaware,


What are the similarities between an array and an ArrayList?

3 Answers  


What is the difference between hashmap and hashtable in java?

0 Answers  


How do you convert an int to a string in java?

0 Answers  






What is a byte array?

0 Answers  


How can I become a good programmer?

0 Answers  


Hi Friends, I am new to java. Can u explain about thread concept.How i know one thread is locked, and how can i force or acquire another thread for lock . Finally how to know thread is released from lock. Explain types of lock(like method level and block level) in thread.

1 Answers  


What is type inference in java8?

0 Answers  


What is the use of arraylist class in java?

0 Answers  


Write a program to print count of empty strings in java 8?

0 Answers  


How do you get length in java?

0 Answers  


Categories