Kondal Rao

Greenhorn
+ Follow
since Apr 05, 2000
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Kondal Rao

Q1.i want my java class to detect the proxy server settings in my system which has been connected to LAN.can anybody send me the info. needed?Which class should i use for detecting the proxy settings?
In windows environment, these proxy server settings and default browser are stored in the window registry. I am sure you can come with a native method to get the proxy server setting using C++. I do not know, if there are any standard java classes supplied by sun to support this independent of the plat form.
Q2.how to convert class files to .exe file?
I read, Now lots of high performance compilers are available to comple your java source to a particular platform. But I haven�t used any of them my self.
Q3.i have java class files in my system connected to lan.
i wish that when i run class files in my system the output should be sent to some other pc (monitor) connected to the lan.
This is a typical example of distributed application. By using RMI or CORBA, you should be able to solve very easily this problem. Have you considered these options?
Hope this helps,
Kondal.
25 years ago
I am playing with Tony Alicea's Application to get the HTTP header. It is a well written application. Good job...Tony
I have the following requirements. We have been using a proxy server. So I should be able to specify the IP address of the proxy server. I need to Get/Post some data from/to a web site which is using HTTPS protocol.
I read somewhere We have to use URLConnection class rather than HttpURLConnection for doing this. Has anybody done this? i.e. writing a Client java application to Get/Post data to HTTPS server?
I really apprecaite, if anyone can through some light on this.
25 years ago
Sorry..for the late reply.
Thanks�Missy.
Maha,

Thanks....In one of our discussions about writeUTF/readUTF methods in �Bill Brogden book�, I should have used more smily faces to look the post more jovial than it is. Sorry�, If I hurt your feelings?
I remember that I got only one question on GridbagLayout, and 2/3 questions on java.io. Maha, Are you planning to Ace the exam? But come to think of it, it is definitely possible. Best of luck.
Regards,
Kondal.
Congrats Raghavendra.
Congrats.
[This message has been edited by Kondal Rao (edited April 21, 2000).]
Thanks Rekha and Sree.
I have prepared the following books:
1. Java2 Exam Cram by Bill Brogden.
2. Java 2 Exam Guide by Barry Boone/William Stanek (I do not advise this book as this book has too many printing mistakes and even concepts are explained wrong, but I read this book).
Java 2 Exam Cram is really crammed up. This is an excellent book. But this does not give too many examples to play with and understand Java fundamentals. So if you are a beginner, you have to read some primer books before taking up this book. Once you have some working knowledge with Java then this book will be useful. If you are ready to spend time, then lot of good material is available on Sun�s web site.
I was scoring above 90 in the mock exams except in Khalid�s. In mock exams do not mind the score, as long as your thinking is correct. IMO, if you are scoring close to 80% consistently in the mock exams then you can be confident that you can clear the Exam without any problem.
Regards,
Kondal.
I was preparing for the SJCP exam for the last two months. Having some experience with C++, learning Java has been very interesting. My Aim was just to pass the exam. Wednesday(04/19)�I took the exam. As I was answering the questions, I was expecting tough questions later, but they never came. After answering all the questions, still I had 40 some minutes left over. Anyway, My score was 97%.
As everyone is interested about the ambiguity of the questions: There is no ambiguity in the questions except one in my case. The question asked me to identify one of the given answers in the Collection classes. The question goes some thing like this
[ . . . ]
I was looking for the class without ordering and without duplication. And none of them are matching. Actually the expected answer is without ordering and with duplication. Anyway, it did not strike me at that time though I have spent nearly 10 minutes and finally answered wrong. However, I am very happy with my score.
I have to admit that I gathered lot of useful information by going through the messages. My sincere thanks, to those people who asked the questions and those who answered.
My advise to people who are going to write the exam is after getting your basic concepts, work out as many mock exams as possible.
I will be suggesting this site to all of my friends.
Have a nice Easter,
Kondal.
[This message has been edited by Tony Alicea (edited April 25, 2000).]
Maha,
After reading your recent post, I have gone through the �Streams and Characters� section of chapter 14. After reading this, I can never come to a conclusion that when the String �Kondal Rao� will be written to the output file, the first two bytes (the UTF-8 encoded string length) will be 10.
Instead I also came to the same conclusion as you that the following will be written to a file using UTF-8 encoding:
[length in bytes after encoding in UTF-8] [encoded_K][encoded_o][encoded_n]......[encoded_o].
Anyway, let us not argue that the Rose is Red. The important issue here is, Are we clear in our concepts? Which is �Yes� in this case, so let us move on.
Regards,
Kondal.
Hi Maha,
I read your post. I have been reading this Bill Brogden �Exam Cram� book. This book was written in an excellent way to prepare for the exam (atleast in my opinion). As I am seeing your answers in this forum, you take lot of interest in answering questions. I appreciate your effort in educating Java community. Having said that...here are my comments.
In your post you have mentioned about paragraphs 4 and 5. But you have eliminated, paragraph 3, which was given below. When you explain a concept in a book, you do not qualify the words completely in all of their occurences like a legal document. This defeats the purpose of explaining the concept and makes it hard. Similarly, we cannot take any individual sentence from a book and say that it is wring, forgetting the context of the sentence. When you read paragraphs 3,4,5 in order, you do not get the understanding that your are actually using the value returned by the length() method in String object for writing to the outputfile as the string length. At least I did not get that understanding.
�A single character may end up encoded in one, two, or three bytes. Because there is no direct equivalence between the number of characters encoded with UTF-8 in a file and number of bytes, the reading and writing methods use a special format.�
So I will not necessarily, call this as an error in the book.
Regards,
Kondal.
Can someone send this MindQ exam to me. My e-mail id is [email protected].
Thanks in advance. As many people are asking for this, if some one could host this on their website,
we can direct the crowd to that link in future? Any thoughts..
Satya,
I will fish the info that i need from here. Thanks much.
I was searching Sun�s site(java.sun.com) for Reader and Writer Classes API, but I could not find. Java.io.* package talks only about Input/OutputStream classes. Can some one point me to the API for Reader/Writer classes.
Thanks in Advance,
Kondal.

I came across this term, When I was reading books titled like "Java for C++ programmers". I am not a C++ guru. But as far as my understanding goes, "callback function" is a C++ terminology. An example for this callback function could be as follows:
You have called some function to Transfer a file to remote host using FTP. These FTP functions may provide some callback functions, using which you can find about the status and number of bytes transferred to remote host. In C++, these callback functions expect the pointer to functions.
In Java, as we all know there are no pointers. The same concept is implemented in Java in Event handling. Here when you add a listener to an object, you pass the instance of the object, which handles that event. Through this, if that event occurs for that component, that component will invoke that particular method in that event hander. Let us discuss with an example.
The following is the init() method of an applet.
Button mybutton = new Button("Test");
mybutton.addActionListener(evtHandler);
add(mybutton);
//where evtHandler implements Actionlistener by overriding actionPermoned(ActionEvent evt);
In the above example, if the user presses the pushbutton, then the mybutton can invoke the actionPerformed method of the evtHandler, which handles this event. This concept is very similar to callback function in C++. One of the common usage for inner classes is to implement interfaces in event handling.
Hope this helps.
Reagrds,
Kondal.
Psethura,
I agree with Jane and Maha. But, I tried cut pasting your code and compiling. Then the compiler shouted saying that it doesn�t know what is FileNotFoundException. If you want to throw this exception, you need to import java.io.* package.
Once you do this, your program compiles and runs. But I am not 100% sure that this is your problem.
Regards,
Kondal.