What is light weight component?
Answers were Sorted based on User's Feedback
swings,threads are light weight components
| Is This Answer Correct ? | 7 Yes | 0 No |
Answer / cj.ashok
Light weight Component is Swing, for ex: In swings If u
want to create button the JVM is wont Ask that button to OS
instead of it ill create its own button type, thats y v
called swing is light weight component,
The Applet is heavy weight component becoz the JVM ask the
button component to OS,then the OS will give components to
JVM, Thats y v called Apllet is Heavy Weight Component
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / ravikiran(aptech mumbai)
light weight component is the one which will load into the
server easily
| Is This Answer Correct ? | 1 Yes | 0 No |
interface X{ void m1(); void m2(); } class Child2 extends Object implements X { public void m1(){ System.out.println("Child2 M1"); } public void m2(){ System.out.println("Child2 M2"); } } public class ParentChildInfterfaceDemo { public static void main(String[] args){ X x = new Child2(); X x1 = new Child2(); x.m1(); x.m2(); x.equals(x1); } } Will the above code work? If yes? Can you please explain why the code x.equals(x1) will work as the equals method is called on interface reference vaiable?
How to display arraylist values in java?
What is the generic class?
What is the importance in context in JDBC connection pools?
explain autoboxing in java?
what is struts-config-xml?and its use?
What is the latest version of java?
public class BatchTest { public static void main(String[] args) { Runtime run = Runtime.getRuntime(); try { Process p = run.exec("cmd start /c D:/test.bat"); System.out.println(p.exitValue()); } catch (Exception e) { e.printStackTrace(); } System.out.println("FINISHED"); } }
What is meant by structural programming?
Is null keyword in java?
How to add and remove nodes in Jtree?
Is assembly language a low level language?