Eclipse interview questions for freshers/Eclipse Interview Questions and Answers for Freshers & Experienced

Explain the difference between >> and >>> operators.

Although they look similar, there is a massive difference between both.

>> operator does the job of right shifting the sign bits

>>> operator is used in shifting out the zero-filled bits

Posted Date:- 2021-10-12 05:41:08

Why is the delete function faster in the linked list than an array?

Delete Function is faster in linked lists as the user needs to make a minor update to the pointer value so that the node can point to the next successor in the list.

Posted Date:- 2021-10-12 05:40:21

What is the Rich Client Platform?

A minimal set of plugins that you need to build a rich client application is known as the Rich Client Platform.

Creating a sample application Eclipse IDE needs only two plugins like ‘org.eclipse.ui’ and ‘org.eclipse.core.runtime’.

Posted Date:- 2021-10-12 05:31:22

Explain about ‘Builders’ associated with the projects in Eclipse IDE?

Projects created in Eclipse IDE have zero or more ‘builders’ associated with it. A builder is responsible for compiling the source code and generating classes for the associated project. A Java project is associated with a java builder.

Posted Date:- 2021-10-12 05:30:36

What is the Eclipse IDE Modelling framework?

While creating a project using some IDE we may add ‘class’ files, create a model for the project and create an XML schema for the same. If we have a better modeling framework, we need to create only one of these entities and the rest of them will get created along. This is done by EMF (Eclipse Modelling Framework).

So, EMF is a set of Eclipse plug-ins, which can be used to model a data model and to generate code from it. This framework is a Java /XML framework.

Posted Date:- 2021-10-12 05:29:44

What is JDK? Mention the variants of JDK?

JDK is an abbreviation for Java Development Kit. It is a combined Package of JRE and Developer tools used for designing Java Applications and Applets. Oracle has the following variants.

JDK Standard Edition
JDK Enterprise Edition
JDK Micro Edition

Posted Date:- 2021-10-12 05:29:04

What happens when the main() isn't declared as static?

When the main method is not declared as static, then the program may be compiled correctly but ends up with a severe ambiguity and throws a run time error that reads "NoSuchMethodError."

Posted Date:- 2021-10-12 05:28:26

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

To get right of entry to precise library from a plugin, the library needs to be added to the classpath of a plug-in. There are 4 approaches of doing this. The JAR can be delivered to the boot classpath
The JAR may be introduced to the declared libraries for a plug-in
Create a brand new plug-in that can be delivered to the library
By the use of OSGI discern loader.

Posted Date:- 2021-10-12 05:26:05

Explain What Is Included In A Rich Client Platform?

In a wealthy purchaser platform,it includes: Eclipse Runtime
JFace
Workbench
SWt

Posted Date:- 2021-10-12 05:25:20

Mention What Are The Differences Between ‘import-bundle’ And ‘require-package deal’ In Eclipse?

Import-Package’ is used to claim a dependency on a bundle without knowing which actual bundle will provide it
‘Require-Bundle’ specifies your plugin challenge’s dependency on other unique package deal and variations explicitly.

Posted Date:- 2021-10-12 05:24:34

What is the final keyword in Java?

The term final is a predefined word in Java that is used while declaring values to variables. When a value is declared using the final keyword, then the variable's value remains constant throughout the program's execution.

Posted Date:- 2021-10-12 05:23:06

Can you implement pointers in a Java Program?

Java Virtual Machine takes care of memory management implicitly. Java's primary motto was to keep programming simple. So, accessing memory directly through pointers is not a recommended action. Hence, pointers are eliminated in Java.

Posted Date:- 2021-10-12 05:22:33

Define Wrapper Classes in Java.

In Java, when you declare primitive datatypes, then Wrapper classes are responsible for converting them into objects(Reference types).

Posted Date:- 2021-10-12 05:21:59

Why is Java not completely object-oriented?

Java is not considered as a 100% object-oriented programming language because it still makes use of eight or more primitive data types like int, float double, etc.

Posted Date:- 2021-10-12 05:21:23

What is Object Cloning?

An ability to recreate an object entirely similar to an existing object is known as Object Cloning in Java. Java provides a clone() method to clone a current object offering the same functionality as the original object.

Posted Date:- 2021-10-12 05:20:48

What is a Marker Interface?

An empty interface in JavaJava is referred to as a Marker interface. Serializable and Cloneable are some famous examples of Marker Interface.

Posted Date:- 2021-10-12 05:20:12

Define Copy Constructor in Java

A Copy Constructor in Java is a constructor that initializes an object through another object of the same class.

Posted Date:- 2021-10-12 05:19:39

What is an Association?

An Association can be defined as a relationship that has no ownership over another. For example, a person can be associated with multiple banks, and a bank can be related to various people, but no one can own the other.

Posted Date:- 2021-10-12 05:18:41

Explain the expected output of the following code segment?

public class Simplilearn

{

public static void main (String args[])

{

System.out.println(100 + 100 +“Simplilearn");

System.out.println(“E-Learning Company" + 100 + 100);

}

}

The answers for the two print statements are as follows.

* 200Simplilearn
* E-Learning Company100100

Posted Date:- 2021-10-12 05:18:11

What is the default value stored in Local Variables?

Neither the Local Variables nor any primitives and Object references have any default value stored in them.

Posted Date:- 2021-10-12 05:17:32

Will the program run if we write static public void main?

Yes, the program will successfully execute if written so. Because, in Java, there is no specific rule for the order of specifiers.

Posted Date:- 2021-10-12 05:17:03

What are the differences between Require-Bundle and Import-Package?

There are two complementary ways of depending on something from outside a given plug-in; Require-Bundle and Import-Package.

Posted Date:- 2021-10-12 05:16:17

What is included in the Rich Client Platform?

Eclipse Runtime, SWt, JFace, Workbench

Posted Date:- 2021-10-12 05:15:46

What is EMF?

The Eclipse Modeling Framework is a Java/XML framework for generating tools and other applications based on simple class models. EMF helps you rapidly turn models into efficient, correct, and easily customizable Java code. It is intended to provide the benefits of formal modeling, but with a very low cost of entry. In addition to code generation, it provides the ability to save objects as XML documents for interchange with other tools and applications.

Posted Date:- 2021-10-12 05:15:02

What is optional dependency?

plug-in prerequisite elements can be made optional by adding the optional="true" attribute in Manifest file(see below for an example). Marking an import as optional simply states that if the specified plug-in is not found at runtime, the dependent plug-in should be left enabled. This is used when a plug-in can be used in many scenarios or it is reasonable to operate with reduced function. It allows the creation of minimal installs that cover functional subsets. Require-Bundle: org.eclipse.swt; optional="true"

Posted Date:- 2021-10-12 05:14:35

How can I change the window icon in my application?

Define a product via the products extension point and specify the windowImages property to refer to two image files, a 16x16 one and a 32x32 one.

Posted Date:- 2021-10-12 05:13:56

Is there a built-in facility to check whether a given value is valid compared to the effective facets of its type?

To determine if a literal is valid with respect to a simple type, you can use either XSDSimpleTypeDefinition.isValidLiteral or XSDSimpleTypeDefinition.assess.

Posted Date:- 2021-10-12 05:11:27

How to resize my shell to get my changed widgets to lay out again?

A layout is only performed automatically on a Composite's children when the Composite is resized, including when it is initially shown. To make a Composite lay out its children under any other circumstances, such as when children are created or disposed, its layout() method must be called.

Posted Date:- 2021-10-12 05:10:51

Do we need to explicitly invoke org.eclipse.swt.graphics.Image.dispose()?

Application code must explicitly invoke the Image.dispose() method to release the operating system resources managed by each instance when those instances are no longer required. This is because that the Java finalization is too weak to reliably support management of operating system resources.

Posted Date:- 2021-10-12 05:10:12

How to config a plugin to start automatically during platform starts up?

Define the 'Eclipse-AutoStart=true' header in Manifest file.

Posted Date:- 2021-10-12 05:09:25

Why do I get the error "org.eclipse.swt.SWTException: Invalid thread access"?

SWT implements a single-threaded UI model often called apartment threading. In this model, only the UI-thread can invoke UI operations. SWT strictly enforces this rule. If you try and access an SWT object from outside the UI-thread, you get the exception "org.eclipse.swt.SWTException: Invalid thread access". The following code sets the text of a label from a background thread and waits for the operation to complete: display.syncExec( new Runnable() { public void run(){ label.setText(text); } });

Posted Date:- 2021-10-12 05:08:59

How to fire a key event in my test code to make the program act as if a user pressed a key?

Two ways to implement it in code: generating OS level key event use Display.post(Event) or use Widge.notifyListeners(...) to just notify a widget's listeners.

Posted Date:- 2021-10-12 05:08:33

What are extensions and extension points?

Loose coupling in Eclipse is achieved partially through the mechanism of extensions and extension points. When a plug-in wants to allow other plug-ins to extend or customize portions of its functionality, it will declare an extension point. The extension point declares a typically a combination of XML markup and Java interfaces, that extensions must conform to. Plug-ins that want to connect to that extension point must implement that contract in their extension.

Posted Date:- 2021-10-12 05:07:53

Explain 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.

Posted Date:- 2021-10-12 05:05:40

Explain how can you add a library to the classpath of a plug-in?

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

Posted Date:- 2021-10-12 05:04:54

Mention 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.

Posted Date:- 2021-10-12 05:04:07

Explain what is included in a Rich Client Platform?

In a rich client platform, it includes

1. Eclipse Runtime
2. JFace
3. Workbench
4. SWt

Posted Date:- 2021-10-12 05:03:13

Explain what is Shell and what is Display?

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

Posted Date:- 2021-10-12 05:02:29

Mention what are the differences between ‘Import-Package’ and ‘Require-Bundle’ in Eclipse?

1. ‘Import-Package’ is used to declare a dependency on a package without knowing which exact bundle will provide it.

2. ‘Require-Bundle’ specifies your plugin project’s dependency on other specific bundle and versions explicitly.

Posted Date:- 2021-10-12 05:01:49

Explain how can you hide menu contributed by other plugins?

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

Posted Date:- 2021-10-12 05:00:40

Explain 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.

Posted Date:- 2021-10-12 05:00:13

Explain How Can You Hide Menu Contributed By Other Plugins?

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

Posted Date:- 2021-10-12 04:56:52

Explain 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.

Posted Date:- 2021-10-12 04:56:28

Explain 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 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

Posted Date:- 2021-10-12 04:56:13

What are the Operating Systems that support Eclipse IDE?

Eclipse IDE is a cross-platform, hence it can be successfully installed and used as a development environment in almost all the operating systems like Windows, Mac, Linux, Solaris, etc.

Posted Date:- 2021-10-12 04:55:28

What are the types of files likely to be found in the ‘src’ and ‘bin’ folder, of your java project developed using Eclipse IDE?

If you have developed a Java project using Eclipse IDE and added codes to meet the project requirements, then you can find ‘.java’ files in the ‘src’ folder and corresponding ‘.class’ files in the ‘bin’ folder. (When we run a Java Project; ‘.java’ files are compiled to ‘.class’ files).

Posted Date:- 2021-10-12 04:55:16

Explain what are activities you can do in Eclipse?

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.

Posted Date:- 2021-10-12 04:55:01

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)

Posted Date:- 2021-10-12 04:54:16

What is a ClassLoader?

A classloader in Java is a subsystem of Java Virtual Machine, dedicated to loading class files when a program is executed; ClassLoader is the first to load the executable file.

Java has Bootstrap, Extension, and Application classloaders.

Posted Date:- 2021-10-12 04:53:25

What is an Eclipse IDE?

Eclipse IDE is the most widely used Java development environment. It is also used to develop applications in other programming languages like Python, C#, C++, etc.

Posted Date:- 2021-10-12 04:53:01

Search
R4R Team
R4R provides Eclipse Freshers questions and answers (Eclipse Interview Questions and Answers) .The questions on R4R.in website is done by expert team! Mock Tests and Practice Papers for prepare yourself.. Mock Tests, Practice Papers,Eclipse interview questions for freshers,Eclipse Freshers & Experienced Interview Questions and Answers,Eclipse Objetive choice questions and answers,Eclipse Multiple choice questions and answers,Eclipse objective, Eclipse questions , Eclipse answers,Eclipse MCQs questions and answers R4r provides Python,General knowledge(GK),Computer,PHP,SQL,Java,JSP,Android,CSS,Hibernate,Servlets,Spring etc Interview tips for Freshers and Experienced for Eclipse fresher interview questions ,Eclipse Experienced interview questions,Eclipse fresher interview questions and answers ,Eclipse Experienced interview questions and answers,tricky Eclipse queries for interview pdf,complex Eclipse for practice with answers,Eclipse for practice with answers You can search job and get offer latters by studing r4r.in .learn in easy ways .