Correct Answer: new ServerSocket(9000);
Explanation:
Note: This Question is unanswered, help us to find answer for this one
Core Java Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More Core Java MCQ Questions
The TreeMap and LinkedHashMap classes:
Which of the following is true about the Cloneable interface?
@Inject annotation belongs to
Livelock describes a situation in which two or more threads block each other, because:
Given a class containing the following pieces of code: ---------------------- public static <T> List getList() { return new ArrayList<T>(); } // ... List<?> list = new ArrayList<Integer>(); ---------------------- Adding which of the following lines would cause the class to not compile?
When you create a thread with the “new” operator – which one of the following statements is true about its state
public class SomeClass { public static void main(String[] args) { System.out.println((String) null); } } Does this code compile without errors?
How can you stop your class from being inherited by another class?
The Thread.sleep() method:
Which of the following is a valid constructor signature?