Siddhu

Ranch Hand
+ Follow
since Oct 02, 1999
Merit badge: grant badges
For More
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 Siddhu

Can anybody try to explain the script part
window.status=myMsg.substring(i, myMsg.length) + myMsg.substring(0, i-1)
Below is the code.
<html>
<head>
<title>My JavaScript page</title>
<SCRIPT LANGUAGE=JAVASCRIPT TYPE="TEXT/JAVASCRIPT">
< !-- Hide script

myMsg = "Hey"

i=0
function scrollMsg() {
window.status=myMsg.substring(i, myMsg.length) + myMsg.substring(0, i-1)
if( i < myMsg.length) {
i++
}
else {
i=0
}

setTimeout("scrollMsg()",1000)
}
// End -->
</SCRIPT>
</head>
<body bgcolor=white onLoad="scrollMsg()">
<h2>I'm a kewl JavaScript dood with a scrolling status bar!</h2>
</body>
</html>
No, it is false.
sleep method can be interrupted.
Given a TextArea using a proportional pitch font and constructed like this:
TextField t = new TextArea("12345", 5, 5);

Which statement is true?
A)- The displayed width shows exactly five characters on each line unless otherwise constrained ???
B)The displayed height is five lines unless otherwise constrained. ???
C) The maximum number of characters in a line will be five. //FALSE DEPENDS ON THE TYPE OF CHARACTER U KEY IN
IF U TYPE CHARACTERS LIKE " I " U CAN HAVE MORE THAN 5 DISPLAYED
D) The user will be able to edit the character string. //TRUE
E) The displayed string can use multiple fonts. //FALSE
The Question should be as:
TextField t = new TextField("12345", 5, 5);
The answers are B) and D).

map
Yes you are rigth shan, the answer is 4)
An interface that ensures that implementing
classes cannot contain duplicates
GC
Youu are right, only 3 is correct
it can become reachable again.
Only extends is a java keyword.
which are direct or indirect subclasses of container
Frame//t
Textarea
MenuBar
FileDialog//t
Applet//t

Yes you are right,
It is Frame, FileDialog, Applet.
Does anybody have any idea of what Questions they would be asking for the interview .
Do they ask any Questions in java .
Please help.
As i have a telephonic interview tomorrow.
24 years ago
I think the answers should be a) b) d)

shree,I searched in the ibm but couldn't find it.
Can you give me the URL of ibm where can i find certifications.
Are there any other Java Certifiactions given by other software vendors other than SUN.
Please let me know.
Q)if an exception is not caught, the finally block will run and the rest of the method is skipped.
Is this true.
When the exception is not caught the finally block runs and again exception passes into the same method,.
Q)Which expression results in the value of x being -21?
A)byte x = -84; x = x >>> 2;
B)int x = -84; x = x >>> 2;
C)int x = -352; x = x >>> 4;
D)int x = -84; x = x >> 2;
E)int x = -84; x = x << 2;
The given answer was b).
How could it be?
I guess it should be D).
Any help?
Got a compilation error as when it tried to compile the below code.
Class1.java:2: Superclass Class1.Base of class Class1.Class1 not found.
public class Class1 extends Base {
I tried to compile using javac -d . Base.java Class1.java
<BOLD>
Base.java
package Base;
class Base {
protected void amethod() {
System.out.println("amethod");
}
}
Class1.java
package Class1;
public class Class1 extends Base {
public static void main(String[] args) {
Base b = new Base();
b.amethod();
}
}