Eclipse Interview Questions & Answers

  1. Question 1. Explain What Is Ide? Name Some Java Ide?

    Answer :

    IDE stands for Integrated Development Environment.

    Some of the Java IDE are:

    •     Eclipse
    •     Netbeans
    •     RAD ( Rational Application Developer )
    •     WSAD (Websphere Application Developer )
  2. Question 2. Define Eclipse? What Are The Key Eclipse Projects And Technologies?

    Answer :

    Eclipse is used in several different areas, e.g. as a development platform for Android or Java applications. It is also used for managing and deploying software across the entire software lifecycle.
    The key Eclipse projects and technologies are;

    •     Eclipse platform
    •     Eclipse project
    •     JDT or Java Development Tools
    •     Plug-in Development Tools (PDE)
  3. Adv Java Interview Questions

  4. Question 3. Explain What Are Activities You Can Do In Eclipse?

    Answer :

    In Eclipse, you can do following activities:

    •     Create generic projects
    •     Edit files in a generic text editor
    •     Share files and project in a CVS (Concurrent Version System) server.
  5. Question 4. What Are The Steps To Change The Jdk Compliance Level?

    Answer :

    The steps to change the JDK compliance level:

    •     Go to Windows
    •     Select Preferences
    •     Select Java – Compiler
    •     Select Java Compliance Level
  6. Adv Java Tutorial

  7. Question 5. Explain How Can You Generate Javadoc Documentation For Your Code?

    Answer :

    To generate JavaDoc documentation for your code, In Eclipse,

    you have to follow the following steps:

    1.     Go to File menu
    2.     Select Export
    3.     Select Java
    4.     JavaDoc
    5.     Choose the projects, other properties and output directory for which JavaDoc is to be created
    6.     Click Finish
  8. Core Java Interview Questions

  9. Question 6. Explain What Are Extension Points?

    Answer :

    Whenever a plug-in wants to allow other plug-ins to extend or customize portions of its functionality, it will declare an extension point.

  10. Question 7. Explain How To Config A Plugin To Start Automatically During Platform Starts Up?

    Answer :

    To config a plugin to start automatically during platform starts up, define the ‘Eclipse-AutoStart=true’ header in Manifest file.

  11. Core Java Tutorial
    MySQL Interview Questions

  12. Question 8. Explain What Is An Eclipse Modeling Framework?

    Answer :

    An eclipse modeling framework is a Java/XML framework. It is used for generating tools and other applications based on simple class models.

  13. Question 9. Explain How Can You Hide Menu Contributed By Other Plugins?

    Answer :

    To hide menu contributed by other plugins, you can use org.eclipse.ui.activities extension.

  14. JDBC Interview Questions

  15. Question 10. Mention What Are The Differences Between ‘import-package’ And ‘require-bundle’ In Eclipse?

    Answer :

    • ‘Import-Package’ is used to declare a dependency on a package without knowing which exact bundle will provide it
    • ‘Require-Bundle’ specifies your plugin project’s dependency on other specific bundle and versions explicitly.
  16. MySQL Tutorial

  17. Question 11. Explain What Is Shell And What Is Display?

    Answer :

    The Shell class represents windows while the Display class represents the GUI process(thread).

  18. Veritas Netbackup Interview Questions

  19. Question 12. Explain What Is Included In A Rich Client Platform?

    Answer :

    In a rich client platform,

    it includes:

    •     Eclipse Runtime
    •     JFace
    •     Workbench
    •     SWt
  20. Adv Java Interview Questions

  21. Question 13. Mention What Is The Class Path Of A Plugin In Eclipse?

    Answer :

    The classpath of a plugin is “OSGI parent class loader”. In OSGI, all class loaders have a common parent class loader.

  22. JDBC Tutorial

  23. Question 14. Explain How Can You Add A Library To The Class Path Of A Plug-in?

    Answer :

    To access particular library from a plugin, the library needs to be added to the classpath of a plug-in.  There are four ways of doing this.

    •     The JAR can be added to the boot classpath
    •     The JAR can be added to the declared libraries for a plug-in
    •     Create a new plug-in that can be added to the library
    •     By using OSGI parent loader.
  24. Question 15. Explain How To Access Ui Objects From A Non-ui Thread?

    Answer :

    To access UI objects from a non-ui thread, use command
    Display.getDefault().asyncExec(new Runnable()…)
    This will cause the run() method of the runnable to be invoked by the user-interface thread at the next reasonable opportunity.

  25. Java-Multithreading Interview Questions

  26. Question 16. Explain How To Fire A Key Event In The Test Code To Make The Program Act As If A User Pressed A Key?

    Answer :

    To fire a key event in test code to make the program act as if a user pressed a key.

    You need to follow two ways.

    •     notifyListeners(…) or
    •     post(Event)
  27. Hibernate Tutorial