|
|
|
General
|
Java I/0 Examples
The Java I/O means Java Input/Output. It is provided by the java.io package. This package has an InputStream and OutputStream. Java InputStream is defined for reading the stream, byte stream and array of byte stream.
View Rating |
|
|
General
|
Java Interview Questions - Page 1
Java Interview Questions by Inigo Nirmal
Question: Can a private method of a superclass be declared within a subclass?
Answer: Sure. A private field or method or inner class belongs to its declared class and hides from its subclasses. There is no way fo
View Rating |
|
|
General
|
Java Interview Questions 3
Question: How many methods in the Serializable interface?
Answer:There is no method in the Serializable interface. The Serializable interface acts as a marker, telling the object serialization tools that your class is serializable.
View Rating |
|
|
General
|
Java Interview Questions - Page 4
Question: What are synchronized methods and synchronized statements?
Answer: Synchronized methods are methods that are used to control access to an object. A thread only executes a synchronized method after it has acquired the lock for the method's obj
View Rating |
|
|
General
|
Java Interview Questions - Page 2
Question: Parsers? DOM vs SAX parser
Answer: parsers are fundamental xml components, a bridge between XML documents and applications that process that XML. The parser is responsible for handling xml syntax, checking the contents of the document against c
View Rating |
|
|
General
|
Java Interview Questions - Page 5
Question: How to create multithread in a program?
Answer: You have two ways to do so. First, making your class "extends" Thread class. Second, making your class "implements" Runnable interface. Put jobs in a run() method and call start() method to start
View Rating |
|
|