Showing posts with label java. Show all posts
Showing posts with label java. Show all posts

Most frequent questions java and c++

0 comments Posted by Unknown at 18:23

 Java and C++

A: Some of the similarities and differences are in the table:
Features Java C/C++
Pointer No Yes
Operator Overload No Yes
Typedef, Define,
Preprocessors No Yes
Structures, Unions No Yes
Enums No Yes
Functions No (only methods within classes) Yes
Goto statement No Yes
Automatic CoercionsNo(types should be converted explicitly) Yes
Global Variables No. Variable is part of a class Yes
Read More »

J2EE Interview questions and answers

0 comments Posted by Unknown at 18:15

PART-III
81. What is EJB object

An object whose class implements the enterprise bean's remote interface. A client never references an enterprise bean instance directly; a client always references an EJB object. The class of an EJB object is generated by a container's deployment tools.

82. What is EJB server

Software that provides services to an EJB container. For example, an EJB container typically relies on a transaction manager that is part of the EJB server to perform the two-phase commit across all the participating resource managers. The J2EE architecture assumes that an EJB container is hosted by an EJB server from the same vendor, so it does not specify the contract between these two entities. An EJB server can host one or more EJB containers.

  
83. What is EJB server provider

A vendor that supplies an EJB server.
Read More »

J2me interview Questions

0 comments Posted by Unknown at 16:47
What is J2ME ?
Java 2, Micro Edition is a group of specifications and technologies that pertain to Java on small devices. The J2ME moniker covers a wide range of devices, from pagers and mobile telephones through set-top boxes and car navigation systems. The J2ME world is divided into configurations and profiles, specifications that describe a Java environment for a specific class of device.
What is J2ME WTK ?
The J2ME Wireless Toolkit is a set of tools that provides developers with an emulation environment,documentation and examples for developing Java applications for small devices. The J2ME WTK is based on the Connected Limited Device Configuration (CLDC) and Mobile Information Device Profile (MIDP) reference implementations, and can be tightly integrated with Forte for Java
What is 802.11 ?
802.11 is a group of specifications for wireless networks developed by the Institute of Electrical and Electronics Engineers (IEEE). 802.11 uses the Ethernet protocol and CSMA/CA (carrier sense multipleaccess with collision avoidance) for path sharing.

Read More »

Top 25 EJB solved Questions

0 comments Posted by Unknown at 16:35
1. What is EJB?
EJB stands for Enterprise JavaBeans and is widely-adopted server side component architecture for J2EE. It enables rapid development of ission-critical application that are versatile, reusable and portable across middleware while protecting IT investment and preventing vendor lock-in.

Read More »

Hcl solved J2ee questions 2012

0 comments Posted by Unknown at 16:27

  1. What is the difference between procedural and object-oriented programs?- a) In procedural program, programming logic follows certain procedures and the instructions are executed one after another. In OOP program, unit of program is object, which is nothing but combination of data and code. b) In procedural program, data is exposed to the whole program whereas in OOPs program, it is accessible with in the object and which in turn assures the security of the code.
  2. What are Encapsulation, Inheritance and Polymorphism?- Encapsulation is the mechanism that binds together code and data it manipulates and keeps both safe from outside interference and misuse. Inheritance is the process by which one object acquires the properties of another object. Polymorphism is the feature that allows one interface to be used for general class actions.
  3. What is the difference between Assignment and Initialization?- Assignment can be done as many times as desired whereas initialization can be done only once.
Read More »

Top 10 Java interview questions

0 comments Posted by Unknown at 16:24
The 10 most frequently-asked Java interview questions, in my experience.Mostly used in phone interviews to “weed out” the weakest candidates.

These questions are fairly simple so getting them wrong will raise a major red flag.

For the same reason I wont bother printing the answers, unless somebody specifically asks for it in the comments.

Read More »

Advanced Java Questions

0 comments Posted by Unknown at 19:22

1)What is the functionality of web server? What are servlets? 

Answer 1) Web server that provides services to remote clients has two main responsibilities:- http://capptitudebank.blogspot.in/ 
The first is to handle network connections; the second is to create a response to be sent back. 

The first task involves programming at the socket level, extracting information from request messages, and implementing client-server protocols, such as HTTP. 
Read More »

EJB solved questions For LNT

0 comments Posted by Unknown at 18:54
Why does EJB needs two interfaces(Home and Remote Interface)

There is a pure division of roles between the two .

Home Interface is the way to communicate with the container which is responsible for creating , locating and removing beans and Remote Interface is the link to the bean that allows acces to all methods and members.


What are the optional clauses in EJB QL?
WHERE and ORDERBY clauses are optional in EJB QL where as SELECT and FROM are required clauses.
Can I invoke Runtime.gc() in an EJB?
You shouldn’t. What will happen depends on the implementation, but the call will most likely be ignored.
Read More »

J2EE interview question In LNT

1 comments Posted by Unknown at 15:44
Java – Fundamentals
Q 01: Give a few reasons for using Java? 
A 01: Java is a fun language. Let’s look at some of the reasons:
ô€‚ƒ Built-in support for multi-threading, socket communication, and memory management (automatic garbage collection).
􀂃 Object Oriented (OO).
􀂃 Better portability than other languages across operating systems.
ô€‚ƒ Supports Web based applications (Applet, Servlet, and JSP), distributed applications (sockets, RMI, EJB etc) and network protocols (HTTP, JRMP etc) with the help of extensive standardized APIs (Application Programming Interfaces).
Read More »

CORE JAVA INTERVIEW QUESTIONS AND ANSWERS

0 comments Posted by Unknown at 02:27


CORE JAVA INTERVIEW QUESTIONS AND ANSWERS 



What is the most important feature of Java? 
Java is a platform independent language. 

What do you mean by platform independence? 
Platform independence means that we can write and compile the java code in one platform (eg Windows) and can execute the class in any other supported platform eg (Linux,Solaris,etc). 

Are JVM's platform independent?
JVM's are not platform independent. JVM's are platform specific run time implementation provided by the vendor. 
Read More »

Mahindra Java Interview Questions With Answers-2:

0 comments Posted by Unknown at 02:24

Mahindra Java Interview Questions With Answers-2:
1) Explain about Core Java?
Java is increasingly used for middleware applications to communicate between Server and clients. Java has features such as multithreading, portability and networking capabilities. Changes in the java library made java as a favorite programming language for developers it added functionality to their scripts.

2) State some advantages of Java?
Platform independence is the key feature of Java during runtime. Syntax of java is similar to the popular object oriented languages such as C and C++. Java program can eliminate most of the bugs present in the program. Manual memory allocation and de allocation feature present in Java is automated.
Read More »

HCL JAVA INTERVIEW QUESTIONS AND ANSWERS

3 comments Posted by Unknown at 02:23

JAVA INTERVIEW QUESTIONS AND ANSWERS

What is the difference between an Interface and an Abstract class?

A:        An abstract class can have instance methods that implement a default behavior. An Interface can only declare constants and instance methods, but cannot implement default behavior and all methods are implicitly abstract. An interface has all public members and no implementation. An abstract class is a class which may have the usual flavors of class members (private, protected, etc.), but has some abstract methods.

Q:        What is the purpose of garbage collection in Java, and when is it used?

A:        The purpose of garbage collection is to identify and discard objects that are no longer needed by a program so that their resources can be reclaimed and reused. A Java object is subject to garbage collection when it becomes unreachable to the program in which it is used.
           
Read More »

Struct interview questions and Answer

0 comments Posted by Unknown at 03:35


Struts Interview Questions

The core of the Struts framework is a flexible control layer based on standard technologies like Java Servlets, JavaBeans, ResourceBundles, and XML, as well as various Jakarta Commons packages. Struts encourages application architectures based on the Model 2 approach, a variation of the classic Model-View-Controller (MVC) design paradigm.Struts provides its own Controller component and integrates with other technologies to provide the Model and the View. For the Model, Struts can interact with standard data access technologies, like JDBC and EJB, as well as most any third-party packages, like Hibernate, iBATIS, or Object Relational Bridge. For the View, Struts works well with JavaServer Pages, including JSTL and JSF, as well as Velocity Templates, XSLT, and other presentation systems.The Struts framework provides the invisible underpinnings every professional web application needs to survive. Struts helps you create an extensible development environment for your application, based on published standards and proven design patterns.

Read More »

Java tuff Questions And Answers

0 comments Posted by Unknown at 03:26

Tcs Java Questions

What is the Collections API?

What is the List interface? 

What is the Vector class?

What is an Iterator interface? 

Which java.util classes and interfaces support event handling?
Read More »

Depth in Java

0 comments Posted by Unknown at 03:18

Depth in Java

utility of introspection

One of Java's strengths is that it was designed with the assumption that the environment in which it was running would be changing dynamically. Classes are loaded dynamically, binding is done dynamically, and object instances are created dynamically on the fly when they are needed. What has not been very dynamic historically is the ability to manipulate "anonymous" classes. In this context, an anonymous class is one that is loaded or presented to a Java class at run time and whose type was previously unknown to the Java program.

Anonymous classes
Supporting anonymous classes is hard to explain and even harder to design for in a program. The challenge of supporting an anonymous class can be stated like this: "Write a program that, when given a Java object, can incorporate that object into its continuing operation." The general solution is rather difficult, but by constraining the problem, some specialized solutions can be created. There are two examples of specialized solutions to this class of problem in the 1.0 version of Java: Java applets and the command-line version of the Java interpreter.
Read More »
 

© 2011. All Rights Reserved | Interview Questions | Template by Blogger Widgets

Home | About | Top