Win a copy of Spring Boot in Practice this week in the Spring forum!

sheri

Ranch Hand
+ Follow
since Sep 14, 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 sheri

hi
is this statement true?
JVM exits after the main() thread is exited even if there might be some threads running.
thanks
sherin

If you want to make your component to activate for user events, chose the statements which are
correct

A.

you can add listener interfaces to this component.
B.

if you add multiple listeners they fill become friendly to eachother.
C.

you can add multiple interfaces to the component for different events.
D.

if listeners added, user can choose and implement only those methods what
he needs
E.

the component which is derived from awt component is not listening to the
events for itself.
ans:a,c
correct me if i am wrong
yhaks
shri
Which of the following statements about GirdBagLayout is true?
(A) You can only make change to one row or one column
(H) fill is irrelevant when you select anchor as CENTER.
(C) You must specify to the component at end of the row as REMAINDER.
(D) anchor is irrelevent When you select fill as BOTH

E: The weightx & weighty should have values between 0.0 & 1.0
my ans ,E
pls correct me if am wrong
thanx
sherinn
the 4th option in the above ques is
j=i<<l>
thanx
sherin
Given the following variables which of the following lines will compile without error?
String s = "Hello";
long l = 99;
double d = 1.11;
int i = 1;
int j = 0;

1) j= i <<s;>
2) j= i<<j;>
3) j=i<<d;>
4)j=i<<l;>

Answer :2,4
can anybody explain how ans 4 is correct
thanx
sherinn
the heirarchy is
reader
BufferedReader chararrayReader inputstreamreader |
fileReader
Q)Which of the following correctly illustrate how an inputStreamReader can be created?
A)new InputStreamReader(new FileInputStream("data"));
B)new InputStreamReader(new FileReader("data"));
C)new InputStreamReader(new BufferedReader("data"));
D)new InputStreamReader("data");
E)new InputStreamReader(System.in);

The hierarchy is
Reader
|
....................................................... | |
BufferedReader ChararrayReader inputstreamreader
|
FileReader

the ans given are:A,E
my ans are:B,c
can anybody help me..
pls
explain
thanx
sherin
hi again ira

the ans are d,e
hi ira
the correct ans are ,E
sherin
1:String s;
s = "Hello";
t = " " + "my";
s.append(t);// error(no append method for strings)
s.toLowerCase();
s+= " friend";
System.out.println(s);
What will be printed?
if i get a question like this ,eventhough we know that there is no append method for strings..& if the questiona aks for an ans what should we do
can anybody explain...if here was no append method the ans will be "hello friend"
2:Which comparisions are true for the following?
C x = new C(10L);
C y = new C(10L);
C z = y;
Long a = 10L;
int b = 10;
A:a == b
B:a == x
C:x == y
D:y == z
E:a == 10.0
ans:A,D,E
3:How can you implement encapsulation in a class?
A. Make all variables protected and only allow access via methods.
B. Make all variables private and only allow access via methods.
C. Ensure all variables are represented by wrapper classes.
D. Ensure all variables are accessed through methods in an ancestor
class.
ans:B
FilterInputStream is the parent class for BufferedInputStream and
> DataInputStream. Which classes are a valid argument for the constructor of a
> FilterInputStream?
>
> A. File
> B. BufferedInputStream
> C. OutputStream
> D. FileInputStream
> E. RandomAccessFile
ans:B,D
Which of the following statements are true?
A. For a given component, events will be processed in the order that
the listeners were added
B. Using the Adapter approach to event handling means creating blank
method bodies for all event methods
C. A component may have multiple listeners associated with it
D. Listeners may be removed once added
ans:B,C,D
anybody correct me if the ans are wrong
thanx
sherinn
hi srikrish
hearty congragulations
can you please send me your notes on different types of streams and readers with their use, constructors and read methods...

i am not very confident in this topic,do you have notes on gridbaglayout..
please send me the notes as soon as possible

my exam is on saturday(23rd)of sep
my mail id:m_aju@hotmail.com
thanx
sherin
thanx to all of you..
hi aruna
i again complied & run the pgm..but the result is the same..none

how did you get the o/p
thanx
sherin
class Unchecked1{
public static void main(String[]args){
}
void method(){
try{
metod1();
System.out.println("Testar metod1");
}
catch (ArithmeticException ae) {
System.out.println("F�ngar ArithmeticException");
}
finally{
System.out.println("K�r finally");
}
System.out.println("I method() utanf�r finally");
}
void metod1(){
throw new NullPointerException();
}
}
A. K�r finally. I method() utanf�r finally. F�ngar Exception.
B. K�r finally. F�ngar Exception.
C. None.
D. K�r finally.
ans is c
i complied & executed the program..the result was None..
first i thought the ans is D.(finally will always execute)..
can anybody pls explain
thanx
sherin