Latest Questions
Post Top Ad
Your Ad Spot
Monday, June 24, 2019

15 Top Eclipse Interview Questions and Answers {Updated}

Eclipse Interview Questions and Answers for experienced PDF, Read commonly asked Eclipse Job Interview Questions with Answers PDF for Freshers.


Read Eclipse Interview Questions and Answers

What is the classpath of a plugin in eclipse?
The classpath of a plugin is “OSGI parent class loader”. In OSGI, all class loaders have a common parent class loader.

What is IDE? Name some Java IDE?
IDE stands for Integrated Development Environment. Some of the Java IDE is
  • Eclipse
  • Netbeans
  • RAD ( Rational Application Developer )
  • WSAD (Websphere Application Developer )

How can you add a library to the classpath of a plug-in?
To access a 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

Define Eclipse? What are the key Eclipse projects and technologies?
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)

How to access UI objects from a non-ui thread?
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.

What are the activities you can do in Eclipse?
In Eclipse, you can do the following activities,
  • Create generic projects
  • Edit files in a generic text editor
  • Share files and project in a CVS (Concurrent Version System) server

How to fire a key event in the test code to make the program act as if a user pressed a key?
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)

What are the steps to change the JDK compliance level?
The steps to change the JDK compliance level
  1. Go to Windows
  2. Select Preferences
  3. Select Java – Compiler
  4. Select Java Compliance Level

How can you generate JavaDoc documentation for your code?
To generate JavaDoc documentation for your code,
In Eclipse, you have to follow the following steps,
  1. Go to the 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

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

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

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

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

What are the differences between ‘Import-Package’ and ‘Require-Bundle’ in Eclipse?
  • ‘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.

What is Shell and what is Display?
The Shell class represents windows while the Display class represents the GUI process(thread).

What is included in a Rich Client Platform?
In a rich client platform, it includes
  • Eclipse Runtime
  • JFace
  • Workbench
  • SWT

Post Top Ad

Your Ad Spot

Pages