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 : Yes, it is possible to have try block within another try block.The inner try block is basically to identify any specific exceptions if any in that particular block ...
Latest Answer : 1.The current length of a StringBuffer can be found through length(). 2.The total allocated capacity can be found via capacity(). Example:
class Demo
{
public static void main(String a[])
{
StringBuffer s=new StringBuffer("Welcome");
System.out.println(" ...
Latest Answer : You can create your own exception by extending the java.io.Exception.Throw the that exception using throw like this :public void method() throws userDefinedException {try {}catch(exception e) { throw new userDefunedExcpetion();} ...
Latest Answer : String - ImmutableStringBuffer - Mutable ...
Latest Answer : Wrapper Classes correspond to the primitive data types in Java, as String is not a datatype in java, hence it is not a wrapper class. ...
Latest Answer : Applet : Applet is client side java program which extends the functionality of web browserApplet must have GUIApplet execution starts with init()Application: Application is standaloneApplication need not have GUIApplication execution starts with main() ...
Latest Answer : Web Server contains only web container which can handle only http requests and Application server contains both web container and EJB Container. ...
I want to fetch the URL address of the Internet Explorer through java program , what ever the user will write in the address of the Internet Explorer should be save into the variable of java program