Professional Documents
Culture Documents
1) Parsing URL
"https://www.google.com/search?
q=javatpoint&oq=javatpoint&sourceid=chrome&ie=UTF-8"
Java 2m 1
3) Difference between Multi-tasking and Multi-
threading
Multi-tasking
Multi-tasking is the ability of an operating system to run multiple processes or
tasks concurrently, sharing the same processor and other resources.
In multi-tasking, the operating system divides the CPU time between multiple
tasks, allowing them to execute simultaneously.
Each task is assigned a time slice, or a portion of CPU time, during which it can
execute its code.
Multi-threading
Multi-threading is a technique in which an operating system divides a single
process into multiple threads, each of which can execute concurrently.
Threads share the same memory space and resources of the parent process,
allowing them to communicate and synchronize data easily.
4) Window Listener
Java 2m 2
5) How many time will be the finalize method is
executed?
Java 2m 3
By extending Thread class.
UDP
Java 2m 4
3. System.err : standard error stream
Java 2m 5