208.16.89.17 writes:
I am trying to learn Java. Recently I appeared a Java test & was unable to answer following questions. I tried to search on various sites as well as in a book "Java 1.1 certification study guide by Simon Robert" but was unable to get the answer.
Following are the questions which I could not answer :
1. What is the way to open a
connection to www.umr.edu port 80
(Topic : socket)
2. Java provides only connection oriented
connections; no datagram protocol are allowed
A : True
B : false
3. text encoidng
Java source can be written in the ________
character encoding method
A : ASCII
B : EBCDIC
C : Either A or B
D : Both A & B
4. Thread implementation
All threads within the same application share the same address space
A : True
B : False
5. Required Locks
Which modifier specifies a resource which
requires a lock?
I would greatly appreciate if you can tell me the answers or the links/books where I can read the
necessary information.
Thanking You in advance.
Milind Nandedkar
203.129.225.217 writes:
Here are the answers to your questions as per my knowledge goes..
1. yes u have a class in java i donno exactly perhaps URL check it out. but u cann do this. You can use socket classes even for that.
2.false java support both connection oriented and connectionless protocols Socket and datagramsocket are the classes for above respct.
3. i am not getting the question it self so pls elaborate on it..
4. yes all the threads in one java VM shares the same address space.
5. Sorry i dont know the answer
Hope some answers of the questions u may have got
Bye
Anand Gore