-
-
-
-
-
-
-
_________ can display and edit multiple lines of text
Skill/Topic: AWT & AppletsA) JtextAreaB) JtextfieldC) JtextPaneD) Jeditorpane
-
-
-
-
-
ob.a++;
try{
Thread.sleep(1000);
}
catch(Exception e)
{
e.printStackTrace();
}
}
}
}
class C extends Thread
{
C()
{
start();
}
public void run()
{
for(int i=0;i<2;i++)
{
System.out.println("ValueC:"+ob.a);
ob.a++;
try{
Thread.sleep(1000);
}
catch(Exception e)
{
e.printStackTrace();
}
}
}
}
B t1=new B();
C t2=new C();
}
}
">Anybody can explain how it is going to work and why it works soclass A{ int a; A() { a=20; }}class Myth{public static void main(String S[]){final A ob=new A(); class B extends Thread { B() { start(); } public void run() { for(int i=0;i
-
________ enhance performance and functionality in various programming languages
Skill/Topic: AWT & AppletsA) threadsB) constantsC) variablesD) none of the above
-
-
-
What are all the values for the following level, respectively?max-priority min-prioritynormal-priority
A) 10,1,5B) 1,10,15C) 10,10,5D) 10,5,1
-
-
-
-
Java Interview Questions
Ans