Win a copy of Mastering Corda: Blockchain for Java Developers this week in the Cloud/Virtualization forum!

bala_chocos

Ranch Hand
+ Follow
since Aug 28, 2000
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by bala_chocos

hi guys
thanks to this site .i have scored 85% in scjp
i have done the mock exam listed by maha .i have finished
the exam with 50 minutes .then i go thro the question
i got tricky question on garbage collection . i have taken
mock exams seriously for the last one week . my advice is
to take mocks before going to exam .i have maintained file
and recorded my mock exam results .first 2 days , i got very
low marks na gradually increase . i will post the file details
later .my advice is have self confident
Thanks to all guys who helped me when i stuck
bye bala

hi sheri
i think no bcoz daemon threads are running
if wrong correct me
hi guys
please give the answer for the question which is mentioned
below
: Connected to a socket s, read one line of ASCII char. Please
construct
the right input method:
- InputStream in = new InputStream(s.getInputStream());
- DataInputStream in = new DataInputStream(s.getInputStream());
- BufferedReader in = new
BufferedReader(InputStreamReader(s.getInputStream());
- BufferedReader in = new
BufferedReader(InputStreamReader(s.getInputStream(),
"8859_1");
Expecting very soon
thanks in adv
bala


A String Class
is final
is public
is serializable
has a constructor which takes a StingBuffer Object as an Argument
ans 1,2,3,4
how ans 4 is correct
hi guys
please give the answer for the question which is mentioned
below
: Connected to a socket s, read one line of ASCII char. Please
construct
the right input method:
- InputStream in = new InputStream(s.getInputStream());
- DataInputStream in = new DataInputStream(s.getInputStream());
- BufferedReader in = new
BufferedReader(InputStreamReader(s.getInputStream());
- BufferedReader in = new
BufferedReader(InputStreamReader(s.getInputStream(),
"8859_1");
Expecting very soon
thanks in adv
bala

hi
please tell me the answer for the questions for the examination point of view
or tell me how to read the previous discussion
: Connected to a socket s, read one line of ASCII char. Please
construct
the right input method:
- InputStream in = new InputStream(s.getInputStream());
- DataInputStream in = new DataInputStream(s.getInputStream());
- BufferedReader in = new
BufferedReader(InputStreamReader(s.getInputStream());
- BufferedReader in = new
BufferedReader(InputStreamReader(s.getInputStream(),
"8859_1");

regards
bala
1 )public class AQuestion
{
public void method(StringBuffer sb)
{
System.out.println("StringBuffer Verion");
}
public void method(String s)
{
System.out.println("String Version");
}
public static void main(String args[])
{
AQuestion question = new AQuestion();
question.method(null);
}
}
Answers
The code does not compile.
The code compiles cleanly and shows "StringBuffer Version".
The code compiles cleanly and shows "String Version"
The code throws an Exception at Runtime.
ans 1
2) An Interface can never be private or protected.
Answers
True
False
ans false
3)
public XXXX extends something1, something2

XXX should be an interface,something1 and something2 need not, for the expression to be legal
XXX should be a class, something1 and something2 must be interfaces for the expression to be legal.
XXX, something1 and something2 must be interfaces for the expression to be legal.
The above statement is alway illegal in Java as multiple inheritance is not supported.
ans 3
4)
Read this piece of code carefully
if("String".replace('T','t') == "String")
System.out.println("Equal");
else
System.out.println("Not Equal");
Answers
the code will compile an print "Equal".
the code will compile an print "Not Equal".
the code will cause a compiler error
ans 1
5) Read this piece of code carefully
if("String".replace('g','G') == "String".replace('g','G'))
System.out.println("Equal");
else
System.out.println("Not Equal");
Answers
the code will compile an print "Equal".
the code will compile an print "Not Equal".
the code will cause a compiler error
ans 2
6) public class ADirtyOne
{
public static void main(String args[])
{
System.out.println(Math.abs(Integer.MIN_VALUE));
}
}
an attempt to compile and run the above class will
Cause a compiler error.
Cause no error and the value printed on the screen is less than zero.
Cause no error and the value printed on the screen is one more than Integer.MAX_VALUE
Will throw a runtime exception due to overflow - Integer.MAX_VALUE is less in magnitue than Integer.MIN_VALUE.
ans 2
7)
what does the following expression return?
(0.0 == -0.0)

true
false
ans 1
8)
What does the following expression print on the screen?
System.out.println(Math.min(Float.NaN, Float.POSITIVE_INFINITY));

NaN
Infinity
The expression throws a runtime exception - NaN is an illegal argument.
ans 1
8 )Assume that th is an instance holding a thread object. th.start() causes the thread to start running and eventually complete its execution. The object reference by th is not accessable any more and is garbage collected when the garbage collecter runs.

True
False
ans 2
hi guys
please explain how the answer is correct
QUESTION : 6
Consider the following class
1. class Tester {
2. void test (int i) { System.out.println ("int version"); }
3. void test (String s) { System.out.println ("String version"); }
4.
5. public static void main (String args[]) {
6. Tester c = new Tester ();
7. char ch = 'p';
8. c.test (ch);
9. }
10. }
ans print "int version"
What tags are mandatory when creating HTML to display an applet
Select most appropriate answer.

a) name, height, width
b) code, name
c) codebase, height, width
d) code, height, width
e) None of the above
what is value of 0x1c
please answer immediate
hi
congrats for scoring the decent marks .could u please
mail me the questions related to sockets media tracker and append
to this mail id bala_chocos@yahoo.com.expecting from u
very urgent iam going to give up test very soon
regards
bala
hi ventkadesh
congrats for scoring the high percentage
dont compare with others .please tell me how to
write answer for the fill in the blanks .Expecting
a reply
regards
bala
hi paul
please explain in detail the answer for the second question
iam waiting for the explanations
thanks in adv
bala
hi bala,
iam also having the same doubt . iam expecting
clarification from ajith,paul,maha anna
thanks in adv
bala
hi bala,
iam also having the same doubt . iam expecting
clarification from ajith,paul,maha anna
thanks in adv
bala