Latest Answer : Yes. Because Swing uses light weight components. Light weight components are the components which are independent of platform and are written in Java. ...
Latest Answer : java program contains 2 elements code and dat. so the mechanism that binds data and code together is Encapsulation. which is also called information hiding or protecting. Encapsulation is used to hide the implementation behind interface(API). ...
Latest Answer : inheritance is an OOPS concept by which a class can acquire the characteristics of another class.The class from which its inheriting is called base class and the class which is inheriting is called sub class.class demo1{}class demo2 extends ...
Latest Answer : Polymorphisn means---One name many form.2 type:Compile time:Overloding.Run time:Overriding.ex.Overloading.class A{ int add(int a,int b) { } float add(float a,float b) { }}Both using same name but diff. arguements i.e overloading is related to ...
Latest Answer : Compilation unit converts the source code into byte code(i.e., into machine independent code) ...
Latest Answer : Listeners are created by implementing one or more interfaces defined by the java.awt.event Package.Commonly used Event Listener Interfaces: 1.ActionListener : This interface defines the actionPerformed(). It is invoked ...
Latest Answer : C++ : partially support the OOP(Object Oriented Programming) concepts .java: fully support the OOP concepts. without using class we can write program in C++. But in java we can't. ...
Latest Answer : Cookies are the one mechanism of Session Tracking means knowing about from which user request is coming. In this mechanism details of the user to recognize him is maintaining at the client side only that's y we can't maintain the security if you use ...
Latest Answer : public--Can be invoked from anywhere.static--Invoked by class,no need of object.void--Cant return anything.Main--method name i.e used to start the execution of prg. ...