Anda di halaman 1dari 4

Eclipse

Eclipse is an IDE or framework(a ready made architecture).


it is open source(free of cost available)
it is a product of IBM.

IDE:(Integrated Developement Environment): IDE is a framework where programmer can


perform any operation related to the program by using inbult libraries.

IDE is a tool where we can write, compile and execute the program in a single
software.

WorkSpace: it is directory where all my eclipse are stored.

Workbench: it is that area where user can write the program ,compile and run the
program.

three flavours of java

1) J2SE-- standard Edition(Stand Alone Application)


it is used to create Desktop Application and console based Application.
we used Swing and AWT(Abstract Window Toolkit)

2)J2EE--- Enterprise edition:- used to create web based application and security
Application

3) J2ME--- Mobile Edition or Micro Edition

used to create Android Apps and Consumer Electronic Device.

Package: It is a collection of classes, interfaces and subpackages. It is a folder.

com: commercial Application:

Difference between constructor and methods

1) method name may be same as class name.


while constructor name must be same as class name.
2) method must have explicit return type
while constructor doesnot have explicit return type

3) Method is called by explicitly(externally).


constructor is called internally.

4) constructor create a memory


while method get the memory from constructor.

Q) constructor doesnot have explicit return type, is constructor return something?

yes, contructor return the object of the class internally.

inCase,there is a return statement at the end of try block ,will finally execute?

yes finally block will execute.

inCase, there is System.exit() is present at the end of try block will finally
execute?

No, Finally block will not execute.

System.exit(0) stop the JVM.

1) Nested try
2) Multiple try

3) multiple catch comes from JDK 1.7.

what is the criteria of using catch if i am using mutiple catch();

Sub exception then super Exception


example of Multiple catch.

Anda mungkin juga menyukai