Google

Openings for fresher Embedded Electronics Engineer : Delhi




Experience: 0 - 2 Years
Location: Delhi, Delhi/NCR
Education: UG - B.Tech/BE - Electronics/Telecommunication, PG - Any PG Course

Job Description:
Fresher Electronics Engineer with good knowledge of Micro-Controllers/ Processors and Electronics Fundamentals. Excellent communication & Documentation skills.
High level of creativity, passion for technology is absolutely essential.

Desired Candidate Profile:
Fresher Electronics Engineer with good knowledge of Micro-Controllers/ Processors and Electronics Fundamentals.
Ability to conceptualize and think creatively.

Company Profile:
An Indian Leading Company implementing World Best Technologies in the areas of Enterprise Wide Factory Floor Data Collection ,Data Analysis ,Vehicle Diagnostic Systems , Gap ,Flushness ,Torque Auditing Systems, Leakage Testing, Machine Vision & Automated Metrology.

Contact Details:



Fresher Oracle Apps Consultants, Client of Ninerecruits



Experience: 0 - 4 Years

 Location: Bengaluru/Bangalore, Hisar, Hyderabad / Secunderabad, MumbaiEducation:UG - B.Tech/B.E. - Any Specialization,BCA - Computers PG - M.Tech - Any Specialization,MBA/PGDM - Any Specialization,MCA - Computers,M.S/M.D - Any Specialization

Industry Type: IT-Software/ Software Services


Job Description
Candidates possessing the following the skills:
SAP consultants (MM,SD, FI/CO, CRM, SRM,WP, AMS, QM, BI).
Oracle Apps Technical Consultants
Websphere Developers for Bahrain.
.Net, Java, Testing, Networking Engineers
View More On

Openings for php engineers freshers at IT SOFTWARE-Bangalore



Experience: 0 Years


Location: Bengaluru/Bangalore

Compensation: Rupees 50,000 - 70,000Education:UG - Any Graduate - Any Specialization,Graduation Not Required PG -

Industry Type: IT-Software/ Software Services

Job Description
This is from crm consultancy
we have got immediate openings for php freshers requirement
we r looking for bangalore profiles
interviews r happenings for above requirement

View on 




 
 

Convergys India Services Pvt LtdCustomer Care Executive (Inbound)


Experience: 0 - 1 Years
Location: Gurgaon
Education: Any Graduate
Industry Type: BPO/ITES /CRM/Transcription
Functional Area: ITES/BPO/KPO, Customer Service, Ops.

Job Description
Graduates having excellent communication skills, Comfortable working in 24/7 environment,
Comfortable working in an Inbound Voice process,
NOte: -Candidates having engineering degrees like B.Tech/B.E. need not to apply.

Desired Candidate Profile
Graduates having excellent communication skills with 0-6 months of experience with any international or domestic call center and comfortable working for an inbound voice process in 24/7 environment.

Contact Details
Website: http://convergys.com

Executive Name: Hunny Parasher
Address:
CONVERGYS India Services Pvt Ltd
DLF Atria, Jacaranda Marg
DLF City Phase - II
Gurgaon,Haryana,INDIA 122002

Keywords: Customer Support Executives

Wipro BPO Solutions Ltd, Jr. Service Analyst investment Banking


Experience: 0 - 1 Years
Location: Pune
Education: Any Graduate
Industry Type: BPO/ITES /CRM/Transcription
Functional Area: ITES/BPO/KPO, Customer Service, Ops.

Job Description
Roles and Responsibilities: communication skills, good command over langauage
Skill & Job Requirements: Basic entry level clerical position with basic MS Office familiarity, administrative skills requires moderate management
6 Months to 2 yrs of experience is required.(Commerce Back ground is must)
B Com / PGDM Finance / M Com.
Need Excellent communications skills / good analytical skills.
Good Knowledge of MS Office is must.
Desired Candidate Profile

Desired Candidate Profile
Qualification: BA
Experience: 0-1 Years
Skills: Basic entry level clerical position with basic MS Office familiarity, administrative skills requires moderate management
6 Months to 2 yrs of experience is required. Commerce Back ground is must)
B Com / PGDM Finance / M Com.
Need Excellent communications skills / good analytical skills.
Good Knowledge of MS Office is must.
Security Roles & Responsibility (Executives / Sr. Executives / Retainers / Associates)

Updates himself regularly with Company policies on Information Security Management System.
Adhere to Information Security Policies of the Company.
Report any Security Incident that is observed.
Ensure clearance of all Security and Compliance related Trainings and Certifications.
Cooperate with Compliance and Security officers with Security Investigations.
Keep Companys and Customer information confidential and not disclose to unauthorized individuals and outsiders.
Help Managers maintain secure environment at work.
Area of expertise: Operations

Contact Details
Company Name: Wipro BPO Solutions Ltd,
Reference ID: Job Code B8945



 

Walk-in Interview For Freshers on 6th December, 2008 At Tata Consultancy Services


Job Description
Should be open for Night shifts
Should have financial Background

Desired Profile
Role- Team Member
Reconcilement of daily bank statement activity to sub ledger activity
Capturing data for MI reports.
Qualities check all requests with a high degree of accuracy while adhering to company policies and Industry standards.
Keep up to date with e-mails and procedure notices
Research process and QC errors to determine validity and use as a learning experience

Requirement:

Fresher & Experienced in any Domain,
Exposure in Backend Support.
Should be willing to work in shifts.

If you are interested please Walk-in with a hard copy of your CV( On the Top Right hand side corner of your resume Please write source as Website), copy of last 2 months pay slip (If you are experienced) and one passport size photograph (Mandatory).

Work Location: Chennai
Venue:

Tata Consultancy Services Limited,
165/1A, Velachery to Taramani 100 feet road,
Velachery, Chennai - 600 042.
Near Vijaya Nagar Bus Stop

Date : 2.12.08 , 6.12.08

Registration Time: 10AM -1PM

Contact Person: Manjula
Please mark as Web-site in reference column (Mandatory)

Note:
Please carry a Xerox copy of this mail for the reference (Mandatory)
Should have 15 years of Regular Education
Candidates attended interview within 6 months will not be Eligible.
BE/B.Tech/MCA need not apply

Experience : 0 - 4 Years
Industry Type : BPO/ITES /CRM/Transcription
Functional Area : ITES/BPO/KPO, Customer Service, Ops.
Education : B.B.A/B.Com/M.Com - Commerce/MBA/PGDM - Finance
Location : Chennai
Keywords : Accounts receivable, Accounts Payable , General Ledger

Contact : Manjula
Tata Consultancy Services
Website : https://www.tcs.com




 

Technical Support Associate At Wipro BPO Solutions Ltd


Experience: 0 - 1 Years
Location: Delhi
Education: Any Graduate
Industry Type: BPO/ITES /CRM/Transcription
Functional Area: ITES/BPO/KPO, Customer Service, Ops.

Job Description
Roles and Responsibilities: Good Communication Skills,Good computer skills
Skill & Job Requirements: - Knowledge of ISP's, and client applications/on-line tools
Ability to use the phone system
Customer Service Skills
Knowledge of Products and Processes
Ability to analyze and solve technical problems
Excellent spoken and written communication skills
Reasonably good Key boarding Skills

Desired Candidate Profile
Qualification: BA, BE / BTech, MCA, Other Qualifications, Vocational
Experience: 0-1 Years
Skills: Answer ACD calls and access customers technical support needs and handle/route accordingly
Log Customer calls Provide first level technical support on basic operations or maintenance of PCs/ or peripherals using documented procedures and available tools
Use troubleshooting techniques to identify products that are defective
Identify and provide input on unique or recurring customer problems Update knowledge of customers product line and service offerings ,current products and technologies
Ensure proper escalation procedures
Area of expertise: Operations

Contact Details
Company Name: Wipro BPO Solutions Ltd.


Manager Of Agency(MOA) Mukthevi Career Consultants Pvt Ltd



Job



Function : Banks/Insurance/Financial Services, Marketing/MR/Media Planning, Sales/Business Development
Specialization : Channel Sales, Corporate Sales, Institutional Sales, Medical Rep., Mutual Funds, Other Marketing/Media
Industry : Banking, Financial Services/Stockbroking, Insurance
Qualification : School & Graduation - Any Graduate
Experience : 2 - 5
Level : Middle - Manager, Assistant Manager
Location : Vijayawada ,Hyderabad/ Secunderabad
Key Skills : marketing,sales,pharma,financial services,banking

JOB DESCRIPTION



:
*Any Grad /PG with 2-5 of sales /marketing exp.
*Selected candidate would be required to handle a team and drive this team for results.
*He should recruit and build a team of 10-15 people.
*Should be capable of handling team.
*Self Motivated.
*Age group 26-32

COMPANY DESCRIPTION :



Walk-in Interview in CTS - Bhubaneswar on 29th- 30th Nov 2008

Mega Walk-ins
Walk-in for Fresher's – iGATE- Noida- Nov 7 - 30
Walk-in Interview in CTS - Bhubaneswar on 29th- 30th Nov 2008 - Java/J2EE, JSP, Servlets
Walk-in Interview in HCL - Networking - Noida - on 1st / 2nd Dec 2008
Walk-in Interview in IT Factory – Chennai-on 29th -2008(Saturday)
Walk-in Interview in E2S - ORACLE PL/SQL at Bangalore on 24th to 28th Nov 2008
Walk-in Interview in VSM Software At Bangalore on 27th Nov and 28th Nov 08-Experience:2 - 5
Walk-in Interview in HCL At Bangalore on 29th Nov 08 ,B.E / B.Tech, MCA, M.Sc
Fresher Jobs In MNC

National Institute of Technology Agartala Required Lecturer For Mechanical/ Civil/ Electrical/ Elect
Fresher Executive - IT Documentation- Vadilal Industries, Any Graduate
Fresher Software Engineer - Sr. Software Engineer PHP Developer jobs in Helios Solutions
Fresher Design Engineer Jobs In Terron Microsystems Pvt. Ltd. , Delhi
Fresher - Trainee Scientific Officer At Nuclear Power Corporation Of India, Any Graduate
Fresher Software Engg-Senior Software Engg Jobs In Xyron Infotech ,UG - B.Tech/B.E,MCA
Fresher Design Engineer Jobs in KDDL Limited- UG - B.Tech/B.E. - Any Specialization
Fresher Relationship Manager and Financial Sales Planner in Net Ambit Pvt. Ltd
Openings for fresher in Zenith Infotech Ltd – Graduate- Mumbai
Fresher Oracle Pl SQL Developer jobs in Zenith Software Ltd- Bangalore
.NET Fresher jobs in Sahasra Software Solutions - Hyderabad
 
Experienced Jobs

Web Designer Jobs In Brand Impakt- UG – BCA-MCA,2 - 5 Years
Technical WriterJobs In Conzerv Systems Pvt Ltd, Bangalore
Jobs for Technology Specialist - Oracle PLSQL & UNIX- Wells Fargo India Solutions
Ismart Panache Inc Hiring Genesys Consultant / Associate Consultant / Specialist
Data Programmer Jobs at Global Insight - Delhi/NCR, Gurgaon, Noida
Senior Database Developer Microsoft SQL Server SQL Programmer jobs In Ikas Technologies
Java, .Net and Testing Jobs ,Multywave Technologies, Hyderabad - Secunderabad
Data warehousing Jobs in CTS - 29th Nov 2008 – Chennai- UG degree
 
BPO Call Center Jobs
Walk-in Interview For Freshers on 29th November, 2008 at Tata Consultancy Services
Walk-in interview on weekdays,BA Continuum Solutions Pvt Ltd , Gurgaon, Noida
Jobs For Business Development Executive , Chennai- BPO/ITES /CRM/Transcription
BPO OPENINGS FOR FRESHERS IN WNS,Any graduate, Class 12,Mumbai


Openings for fresher in Zenith Infotech


- Mumbai

Required Skills : MS-Office
Experience : 0-1
Education : Graduate
Job Location : Mumbai
India Job Portal
Job Description :
MS-Office
- To monitor and make sure any open tasks to engineering is being updated by engineering every 4 hours
- In the future He will also monitor and update all on the status of the new released and pending work.

About Company :
Zenith Computers Ltd. is a leading manufacturers of PCs, Servers, and Laptops with National Network of Sales & Service branches & Channel Network.

Company Name : Zenith Infotech Ltd
Company Address : Zenith Infotech Ltd Zenith House, 29/ MIDC, Central Road Andheri(E), Mumbai - 400093


Data warehousing Jobs in CTS - 29th Nov 2008 – Chennai- UG degree



Data warehousing Jobs in CTS - 29th Nov 2008 – Chennai- UG degree


on 29th Nov 2008
Date : 29th Nov 2008
Time: 9.30am - 12.30pm

Venue :
Cognizant Technology Solutions India Pvt. Ltd.
1st floor, Corp. Bank. Bldg.,
38 & 39, Whites Road,
Opp. Sathyam Theatre car parking
Chennai-14

Walk-in Interview in E2S - ORACLE PL/SQL at Bangalore


Walk-in Interview in E2S - ORACLE PL/SQL at Bangalore on 24th to 28th Nov 2008


Walk-in Interview Details :
Date : 24th to 28th Nov 2008
Time : 9:30 A.M. To 7:00 P.M. ( Tuesday TO Friday between )


Venue :
E2S Technologies India Pvt. Ltd,
C/O. NCMR Technologies Pvt. Ltd.
Crystal Plaza, 9-11, Bhuvanappa Layout,
Hosur Road, Kormangala, Bangalore- 560029
Landmark : Opp. Forum Mall, next to @HOME Appliances, Near Big Bazar, Dairy Circle Road.

Contact : Mr.Srinivas / Ms.Veena (080-25508830 Ext-191 / 120)

WALK-IN with your Hard Copy
Position : Senior Java Developer


Walkin interviews For fresher.........



Fresher jobs.............
C&K management Recruits Freshers Hyderabad
Kilmist Infotech Recruits Freshers Java- Trainee Programmers Bangalore
Freher jobs at Trutech UG - Any Graduate - Any Specialization Mumbai
Fresher jobs at Integrated Software UG - B.Tech Hyderabad
Promax System & Solutions Pvt Ltd Hiring Junior SAP Consultants Bengaluru
Fresher jobs in iSOFT UG - Any Graduate Chennai
Walk-in interview at Aavanor Systems J2EE freshers Chennai
IBM Recruits Freshers Bangalore, Hyderabad,Secunderabad
Fresher jobs in HCL Infosystems Bangalore, Chennai, Hyderabad
Ubisoft recruits Freshers Pune,Maharashtra
Fresher jobs in Deloitte .NetAnalyst Hyderabad -Secunderabad
Capgemini recruits Freshers Bangalore
Integrated Software Systems recruits freshers Hyderabad 22nov
ITSL recruits Freshers SAP New Delhi
Net creative mind Solutions recruits Freshers Any Graduate Delhi

Capgemini recruits Freshers Bangalore




Butler Technical Services India Pvt Ltd Hiring Webmethods administrator Hyderabad / Secunderabad
Experience jobs in Insync Tech - Fin Solutions Limited Experience : 2 - 3 Years
Fresher jobs in HCL Infosystems Bangalore, Chennai, Hyderabad
Ubisoft recruits Freshers Pune,Maharashtra
Fresher jobs in Deloitte .NetAnalyst Hyderabad -Secunderabad
Capgemini recruits Freshers Bangalore
Integrated Software Systems recruits freshers Hyderabad 22nov
ITSL recruits Freshers SAP New Delhi
Net creative mind Solutions recruits Freshers Any Graduate Delhi
Syntel recruits Freshers Any graduate Pune
Aricent recruits Freshers QA & Testing Gurgaon, Haryana
Fresher jobs in Binary semantics Gurgaon
TCS Walk in 24th Nov,28th Nov Mumbai
Walk in Interviews at Drishti on November 21, 22_11 AM
Freshers walkins at HCL Noida IT-Software/ Software Services
Fresher Walkin at HTMT Mysore
Walkin Interview on Oracle Nov 22 Bangalore

Faq C C++ Interview Questions


  1. What is the most efficient way to reverse a linklist?
  2. How to sort & search a single linklist?
  3. Which is more convenient - single or double-linked linklist? Discuss the trade-offs? What about XOR-linked linklist?
  4. How does indexing work?
  5. char s[10];
    s="Hello";
    printf(s);

    What will be the output? Is there any error with this code?
  6. What is the difference between
    char s[]="Hello";
    char *s="Hello";

    Please give a clear idea on this?
  7. Why do we pass a reference for copy constructors? If it does shallow copy for pass by value (user defined object), how will it do the deep copy?
  8. What is the difference between shallow copy & deep copy?
  9. What is the difference between strcpy and memcpy? What rule should we follow when choosing between these two?
  10. If we declare two variable and two applications are using the same variable, then what will its value be, will it be the same?

Does Java have destructors


Does Java have destructors?

Garbage collector does the job working in the background
Java does not have destructors; but it has finalizers that does a similar job.
the syntax is
public void finalize(){
}
if an object has a finalizer, the method is invoked before the system garbage collects the object

What does the "abstract" keyword mean in front of a method? A class?

Abstract keyword declares either a method or a class.
If a method has a abstract keyword in front of it,it is called abstract method.Abstract method hs no body.It has only arguments and return type.Abstract methods act as placeholder methods that are implemented in the subclasses.
Abstract classes can't be instantiated.If a class is declared as abstract,no objects of that class can be created.If a class contains any abstract method it must be declared as abstract

Are Java constructors inherited ? If not, why not?

You cannot inherit a constructor. That is, you cannot create a instance of a subclass using a constructor of one of it's superclasses. One of the main reasons is because you probably don't want to overide the superclasses constructor, which would be possible if they were inherited. By giving the developer the ability to override a superclasses constructor you would erode the encapsulation abilities of the language.

FAQ How many different types of JDBC drivers are present


How many different types of JDBC drivers are present? Discuss them.

There are four JDBC driver types.
Type 1: JDBC-ODBC Bridge plus ODBC Driver:
The first type of JDBC driver is the JDBC-ODBC Bridge. It is a driver that provides JDBC access to databases through ODBC drivers. The ODBC driver must be configured on the client for the bridge to work. This driver type is commonly used for prototyping or when there is no JDBC driver available for a particular DBMS.
Type 2: Native-API partly-Java Driver:
The Native to API driver converts JDBC commands to DBMS-specific native calls. This is much like the restriction of Type 1 drivers. The client must have some binary code loaded on its machine. These drivers do have an advantage over Type 1 drivers because they interface directly with the database.
Type 3: JDBC-Net Pure Java Driver:
The JDBC-Net drivers are a three-tier solution. This type of driver translates JDBC calls into a database-independent network protocol that is sent to a middleware server. This server then translates this DBMS-independent protocol into a DBMS-specific protocol, which is sent
to a particular database. The results are then routed back through the middleware server and sent back to the client. This type of solution makes it possible to implement a pure Java client. It also makes it possible to swap databases without affecting the client.
Type 4: Native-Protocol Pure Java Driver
These are pure Java drivers that communicate directly with the vendor's database. They do this by converting JDBC commands directly into the database engine's native protocol. This driver has no additional translation or middleware layer, which improves performance tremendously.
What does the "static" keyword mean in front of a variable? A method? A class? Curly braces {}?
static variable
- means a class level variable
static method:
-does not have "this". It is not allowed to access the not static members of the class.
can be invoked enev before a single instance of a class is created.
eg: main
static class:
no such thing.
static free floating block:
is executed at the time the class is loaded. There can be multiple such blocks. This may be useful to load native libraries when using native methods.
eg:
native void doThis(){
static{
System.loadLibrary("myLibrary.lib");
}

Access specifiers: "public", "protected", "private", nothing?

In the case of Public, Private and Protected, that is used to describe which programs can access that class or method: Public – any other class from any package can instantiate and execute the classes and methods. Protected – only subclasses and classes inside of the package can access the classes and methods. Private – the original class is the only class allowed to executed the methods.

What does the "final" keyword mean in front of a variable? A method? A class?

FINAL for a variable : value is constant
FINAL for a method : cannot be overridden
FINAL for a class : cannot be derived
A final variable cannot be reassigned,
but it is not constant. For instance,
final StringBuffer x = new StringBuffer()
x.append("hello");
is valid. X cannot have a new value in it,but nothing stops operations on the object
that it refers, including destructive operations. Also, a final method cannot be overridden
or hidden by new access specifications.This means that the compiler can choose
to in-line the invocation of such a method.(I don't know if any compiler actually does
this, but it's true in theory.) The best example of a final class is
String, which defines a class that cannot be derived.

Does Java have "goto"?

No.

What synchronization constructs does Java provide? How do they work?

The two common features that are used are:
1. Synchronized keyword - Used to synchronize a method or a block of code. When you synchronize a method, you are in effect synchronizing the code within the method using the monitor of the current object for the lock.
The following have the same effect.
synchronized void foo() {
}
and
void foo() {
synchronized(this) {
}
If you synchronize a static method, then you are synchronizing across all objects of the same class, i.e. the monitor you are using for the lock is one per class, not one per object.
2. wait/notify. wait() needs to be called from within a synchronized block. It will first release the lock acquired from the synchronization and then wait for a signal. In Posix C, this part is equivalent to the pthread_cond_wait method, which waits for an OS signal to continue. When somebody calls notify() on the object, this will signal the code which has been waiting, and the code will continue from that point. If there are several sections of code that are in the wait state, you can call notifyAll() which will notify all threads that are waiting on the monitor for the current object. Remember that both wait() and notify() have to be called from blocks of code that are synchronized on the monitor for the current object.

Does Java have multiple inheritance?

Java does not support multiple inheritence directly but it does thru the concept of interfaces.
We can make a class implement a number of interfaces if we want to achieve multiple inheritence type of functionality of C++.

How does exception handling work in Java?

1.It separates the working/functional code from the error-handling code by way of try-catch clauses.
2.It allows a clean path for error propagation. If the called method encounters a situation it can't manage, it can throw an exception and let the calling method deal with it.
3.By enlisting the compiler to ensure that "exceptional" situations are anticipated and accounted for, it enforces powerful coding.
4.Exceptions are of two types: Compiler-enforced exceptions, or checked exceptions. Runtime exceptions, or unchecked exceptions. Compiler-enforced (checked) exceptions are instances of the Exception class or one of its subclasses — excluding the RuntimeException branch. The compiler expects all checked exceptions to be appropriately handled. Checked exceptions must be declared in the throws clause of the method throwing them — assuming, of course, they're not being caught within that same method. The calling method must take care of these exceptions by either catching or declaring them in its throws clause. Thus, making an exception checked forces the us to pay heed to the possibility of it being thrown. An example of a checked exception is java.io.IOException. As the name suggests, it throws whenever an input/output operation is abnormally terminated.

FQA Interview Questions And Answers C,C++,JAVA,DOTNET,Oracle

What is the difference between an Applet and an Application?

A Java application is made up of a main() method declared as public static void that accepts a string array argument, along with any other classes that main() calls. It lives in the environment that the host OS provides. A Java applet is made up of at least one public class that has to be subclassed from java.awt.Applet. The applet is confined to living in the user's Web browser, and the browser's security rules, (or Sun's appletviewer, which has fewer restrictions).  The differences between an applet and an application are as follows:
1. Applets can be embedded in HTML pages and downloaded over the Internet whereas Applications have no special support in HTML for embedding or downloading.
2. Applets can only be executed inside a java compatible container, such as a browser or appletviewer whereas Applications are executed at command line by java.exe or jview.exe.
3. Applets execute under strict security limitations that disallow certain operations(sandbox model security) whereas Applications have no inherent security restrictions.
4. Applets don't have the main() method as in applications. Instead they operate on an entirely different mechanism where they are initialized by init(),started by start(),stopped by stop() or destroyed by destroy().

Java says "write once, run anywhere". What are some ways this isn't quite true?

As long as all implementaions of java are certified by sun as 100% pure java this promise of "Write once, Run everywhere" will hold true. But as soon as various java core implemenations start digressing from each other, this won't be true anymore. A recent example of a questionable business tactic is the surreptitious behavior and interface modification of some of Java's core classes in their own implementation of Java. Programmers who do not recognize these undocumented changes can build their applications expecting them to run anywhere that Java can be found, only to discover that their code works only on Microsoft's own Virtual Machine, which is only available on Microsoft's own operating systems.

What is the difference between a Vector and an Array. Discuss the advantages and disadvantages of both?

Vector can contain objects of different types whereas array can contain objects only of a single type.
- Vector can expand at run-time, while array length is fixed.
- Vector methods are synchronized while Array methods are not

What are java beans?

JavaBeans is a portable, platform-independent component model written in the Java programming language, developed in collaboration with industry leaders. It enables developers to write reusable components once and run them anywhere — benefiting from the platform-independent power of Java technology. JavaBeans acts as a Bridge between proprietary component models and provides a seamless and powerful means for developers to build components that run in ActiveX container applications. JavaBeans are usual Java classes which adhere to certain coding conventions:
1. Implements java.io.Serializable interface
2. Provides no argument constructor
3. Provides getter and setter methods for accessing it's properties

What is RMI?

RMI stands for Remote Method Invocation. Traditional approaches to executing code on other machines across a network have been confusing as well as tedious and error-prone to implement. The nicest way to think about this problem is that some object happens to live on another machine, and that you can send a message to the remote object and get a result as if the object lived on your local machine. This simplification is exactly what Java Remote Method Invocation (RMI) allows you to do. Above excerpt is from "Thinking in java". For more information refer to any book on Java.

What does the keyword "synchronize" mean in java. When do you use it? What are the disadvantages of synchronization?

Synchronize is used when you want to make your methods thread safe. The disadvantage of synchronize is it will end up in slowing down the program. Also if not handled properly it will end up in dead lock.

What gives java it's "write once and run anywhere" nature?

Java is compiled to be a byte code which is the intermediate language between source code and machine code. This byte code is not platorm specific and hence can be fed to any platform. After being fed to the JVM, which is specific to a particular operating system, the code platform specific machine code is generated thus making java platform independent.

What are native methods? How do you use them?

Native methods are methods written in other languages like C, C++, or even assembly language. You can call native methods from Java using JNI. Native methods are used when the implementation of a particular method is present in language other than Java say C, C++. To use the native methods in java we use the keyword native
public native method_a(). This native keyword is signal to the java compiler that the implementation of this method is in a language other than java. Native methods are used when we realize that it would take up a lot of rework to write that piece of already existing code in other language to Java.

What is JDBC? Describe the steps needed to execute a SQL query using JDBC.

We can connect to databases from java using JDBC. It stands for Java DataBase Connectivity.
Here are the steps:
1. Register the jdbc driver with the driver manager
2. Establish jdbc connection
3. Execute an sql statement
4. Process the results
5. Close the connection
Before doing these do import java.sql.*
JDBC is java based API for accessing data from the relational databases. JDBC provides a set of classes and interfaces for doing various database operations. The steps are:
Register/load the jdbc driver with the driver manager.
Establish the connection thru DriverManager.getConnection();
Fire a SQL thru conn.executeStatement();
Fetch the results in a result set
Process the results
Close statement/result set and connection object.

Recent Interview Questions And Answers(C,C++,JAVA,DOTNET,Oracle,SAP)

What is the difference between StringBuffer and String class?

A string buffer implements a mutable sequence of characters. A string buffer is like a String, but can be modified. At any point in time it contains some particular sequence of characters, but the length and content of the sequence can be changed through certain method calls. The String class represents character strings. All string literals in Java programs, such as "abc" are constant and implemented as instances of this class; their values cannot be changed after they are created. Strings in Java are known to be immutable. What it means is that every time you need to make a change to a String variable, behind the scene, a "new" String is actually being created by the JVM. For an example: if you change your String variable 2 times, then you end up with 3 Strings: one current and 2 that are ready for garbage collection. The garbage collection cycle is quite unpredictable and these additional unwanted Strings will take up memory until that cycle occurs. For better performance, use StringBuffers for string-type data that will be reused or changed frequently. There is more overhead per class than using String, but you will end up with less overall classes and consequently consume less memory. Describe, in general, how java's garbage collector works? The Java runtime environment deletes objects when it determines that they are no longer being used. This process is known as garbage collection. The Java runtime environment supports a garbage collector that periodically frees the memory used by objects that are no longer needed. The Java garbage collector is a mark-sweep garbage collector that scans Java's dynamic memory areas for objects, marking those that are referenced. After all possible paths to objects are investigated, those objects that are not marked (i.e. are not referenced) are known to be garbage and are collected. (A more complete description of our garbage collection algorithm might be "A compacting, mark-sweep collector with some conservative scanning".) The garbage collector runs synchronously when the system runs out of memory, or in response to a request from a Java program. Your Java program can ask the garbage collector to run at any time by calling System.gc(). The garbage collector requires about 20 milliseconds to complete its task so, your program should only run the garbage collector when there will be no performance impact and the program anticipates an idle period long enough for the garbage collector to finish its job. Note: Asking the garbage collection to run does not guarantee that your objects will be garbage collected. The Java garbage collector runs asynchronously when the system is idle on systems that allow the Java runtime to note when a thread has begun and to interrupt another thread (such as Windows 95). As soon as another thread becomes active, the garbage collector is asked to get to a consistent state and then terminate.

What's the difference between == and equals method?

equals checks for the content of the string objects while == checks for the fact that the two String objects point to same memory location ie they are same references.

What are abstract classes, abstract methods?

Simply speaking a class or a method qualified with "abstract" keyword is an abstract class or abstract method. You create an abstract class when you want to manipulate a set of classes through a common interface. All derived-class methods that match the signature of the base-class declaration will be called using the dynamic binding mechanism. If you have an abstract class, objects of that class almost always have no meaning. That is, abstract class is meant to express only the interface and sometimes some default method implementations, and not a particular implementation, so creating an abstract class object makes no sense and are not allowed ( compile will give you an error message if you try to create one). An abstract method is an incomplete method. It has only a declaration and no method body. Here is the syntax for an abstract method declaration: abstract void f(); If a class contains one or more abstract methods, the class must be qualified an abstract. (Otherwise, the compiler gives you an error message.). It's possible to create a class as abstract without including any abstract methods. This is useful when you've got a class in which it doesn't make sense to have any abstract methods, and yet you want to prevent any instances of that class. Abstract classes and methods are created because they make the abstractness of a class explicit, and tell both the user and the compiler how it was intended to be used.
For example:
abstract class Instrument {
int i; // storage allocated for each
public abstract void play();
public String what() {
return "Instrument";
public abstract void adjust();
}
class Wind extends Instrument {
public void play() {
System.out.println("Wind.play()");
}
public String what() { return "Wind"; }
public void adjust() {}
Abstract classes are classes for which there can be no instances at run time. i.e. the implementation of the abstract classes are not complete. Abstract methods are methods which have no defintion. i.e. abstract methods have to be implemented in one of the sub classes or else that class will also become Abstract.

C C++,Java,RDBMS,Data Structures,OS,Unix,Linux

How can you achieve Multiple Inheritance in Java?

Java's interface mechanism can be used to implement multiple inheritance, with one important difference from c++ way of doing MI: the inherited interfaces must be abstract. This obviates the need to choose between different implementations, as with interfaces there are no implementations.

interface CanFight {
void fight();
interface CanSwim {
void swim();
interface CanFly {
void fly();
class ActionCharacter {
public void fight() {}
class Hero extends ActionCharacter implements CanFight, CanSwim, CanFly {
public void swim() {}
public void fly() {}
}

You can even achieve a form of multiple inheritance where you can use the *functionality* of classes rather than just the interface:

interface A {
void methodA();
}
class AImpl implements A {
void methodA() { //do stuff }
}
interface B {
void methodB();
}
class BImpl implements B {
void methodB() { //do stuff }
}
class Multiple implements A, B {
private A a = new A();
private B b = new B();
void methodA() { a.methodA(); }
void methodB() { b.methodB(); }
}
This completely solves the traditional problems of multiple inheritance in C++ where name clashes occur between multiple base classes. The coder of the derived class will have to explicitly resolve any clashes. Don't you hate people who point out minor typos? Everything in the previous example is correct, except you need to instantiate an AImpl and BImpl. So class Multiple would look like this:
class Multiple implements A, B {
private A a = new AImpl();
private B b = new BImpl();
void methodA() { a.methodA(); }
void methodB() { b.methodB(); }
}

Latest Java and C++ interview questions Papers

What are the main differences between Java and C++?

Everything is an object in Java( Single root hierarchy as everything gets derived from java.lang.Object). Java does not have all the complicated aspects of C++ ( For ex: Pointers, templates, unions, operator overloading, structures etc..)  The Java language promoters initially said "No pointers!", but when many programmers questioned how you can work without pointers, the promoters began saying "Restricted pointers." You can make up your mind whether it's really a pointer or not. In any event, there's no pointer arithmetic. There are no destructors in Java. (automatic garbage collection),  Java does not support conditional compile (#ifdef/#ifndef type). Thread support is built into java but not in C++. Java does not support default arguments. There's no scope resolution operator :: in Java. Java uses the dot for everything, but can get away with it since you can define elements only within a class. Even the method definitions must always occur within a class, so there is no need for scope resolution there either. There's no "goto " statement in Java. Java doesn't provide multiple inheritance (MI), at least not in the same sense that C++ does. Exception handling in Java is different because there are no destructors. Java has method overloading, but no operator overloading. The String class does use the + and += operators to concatenate strings and String expressions use automatic type conversion, but that's a special built-in case. Java is interpreted for the most part and hence platform independent

What are interfaces?

Interfaces provide more sophisticated ways to organize and control the objects in your system.
The interface keyword takes the abstract concept one step further. You could think of it as a "pure" abstract class. It allows the creator to establish the form for a class: method names, argument lists, and return types, but no method bodies. An interface can also contain fields, but The interface keyword takes the abstract concept one step further. You could think of it as a "pure" abstract class. It allows the creator to establish the form for a class: method names, argument lists, and return types, but no method bodies. An interface can also contain fields, but an interface says: "This is what all classes that implement this particular interface will look like." Thus, any code that uses a particular interface knows what methods might be called for that interface, and that's all. So the interface is used to establish a "protocol" between classes. (Some object-oriented programming languages have a keyword called protocol to do the same thing.)  Typical example from "Thinking in Java":

import java.util.*;
interface Instrument {
int i = 5; // static & final
// Cannot have method definitions:
void play(); // Automatically public
String what();
void adjust();
}
class Wind implements Instrument {
public void play() {
System.out.println("Wind.play()");
public String what() { return "Wind"; }
public void adjust() {}
}

Recent FAQ C C++ Java interview questions

Describe what happens when an object is created in Java?

Several things happen in a particular order to ensure the object is constructed properly:
1. Memory is allocated from heap to hold all instance variables and implementation-specific data of the object and its superclasses. Implementation-specific data includes pointers to class and method data.
2. The instance variables of the objects are initialized to their default values.
3. The constructor for the most derived class is invoked. The first thing a constructor does is call the constructor for its uppercase. This process continues until the constructor for java.lang.Object is called, as java.lang.Object is the base class for all objects in java.
4. Before the body of the constructor is executed, all instance variable initializers and initialization blocks are executed. Then the body of the constructor is executed. Thus, the constructor for the base class completes first and constructor for the most derived class completes last.

In Java, you can create a String object as below : String str = "abc"; & String str = new String("abc");  Why cant a button object be created as : Button bt = "abc"? Why is it compulsory to create a button object as: Button bt = new Button("abc"); Why this is not compulsory in String's case?

Button bt1= "abc"; It is because "abc" is a literal string (something slightly different than a String object, by-the-way) and bt1 is a Button object. That simple. The only object in Java that can be assigned a literal String is java.lang.String. Important to not that you are NOT calling a java.lang.String constuctor when you type String s = "abc"; For example String x = "abc"; String y = "abc"; refer to the same object. While String x1 = new String("abc");
String x2 = new String("abc"); refer to two different objects.

What is the advantage of OOP?

You will get varying answers to this question depending on whom you ask. Major advantages of OOP are:
1. Simplicity: software objects model real world objects, so the complexity is reduced and the program structure is very clear;
2. Modularity: each object forms a separate entity whose internal workings are decoupled from other parts of the system;
3. Modifiability: it is easy to make minor changes in the data representation or the procedures in an OO program. Changes inside a class do not affect any other part of a program, since the only public interface that the external world has to a class is through the use of methods;
4. Extensibility: adding new features or responding to changing operating environments can be solved by introducing a few new objects and modifying some existing ones;
5. Maintainability: objects can be maintained separately, making locating and fixing problems easier;
6. Re-usability: objects can be reused in different programs

Java Programming Interview Questions

Q1: What are the advantages of OOPL?

Ans: Object oriented programming languages directly represent the real life objects. The features of OOPL as inhreitance, polymorphism, encapsulation makes it powerful.

Q2: What do mean by polymorphisum, inheritance, encapsulation?

Ans: Polymorhisum: is a feature of OOPl that at run time depending upon the type of object the appropriate method is called.
Inheritance: is a feature of OOPL that represents the "is a" relationship between different objects(classes). Say in real life a manager is a employee. So in OOPL manger class is inherited from the employee class.
Encapsulation: is a feature of OOPL that is used to hide the information.

Q3: What do you mean by static methods?

Ans: By using the static method there is no need creating an object of that class to use that method. We can directly call that method on that class. For example, say class A has static function f(), then we can call f() function as A.f(). There is no need of creating an object of class A.

Q4: What do you mean by virtual methods?

Ans: virtual methods are used to use the polymorhism feature in C++. Say class A is inherited from class B. If we declare say fuction f() as virtual in class B and override the same function in class A then at runtime appropriate method of the class will be called depending upon the type of the object.

Q5: Given two tables Student(SID, Name, Course) and Level(SID, level) write the SQL statement to get the name and SID of the student who are taking course = 3 and at freshman level.

Ans: SELECT Student.name, Student.SID
FROM Student, Level
WHERE Student.SID = Level.SID
AND Level.Level = "freshman"
AND Student.Course = 3;

Q6: What are the disadvantages of using threads?

Ans: DeadLock.

Q7: Write the Java code to declare any constant (say gravitational constant) and to get its value?

Ans: Class ABC
{
static final float GRAVITATIONAL_CONSTANT = 9.8;
public void getConstant()
{
system.out.println("Gravitational_Constant: " + GRAVITATIONAL_CONSTANT);
}
}


Q8: What do you mean by multiple inheritance in C++ ?

Ans: Multiple inheritance is a feature in C++ by which one class can be of different types. Say class teachingAssistant is inherited from two classes say teacher and Student.

Q9: Can you write Java code for declaration of multiple inheritance in Java ?

Ans: Class C extends A implements B
{
}

Java Technical InterviewQuestions

What modifiers may be used with top-level class?

public, abstract and final can be used for top-level class.



What are inner class and anonymous class?

Inner class : classes defined in other classes, including those defined in methods are called inner classes. An inner class can have any accessibility including private.

Anonymous class : Anonymous class is a class defined inside a method without a name and is instantiated and declared in the same place and cannot have explicit constructors.




What is a package?


A package is a collection of classes and interfaces that provides a high-level layer of access protection and name space management.



What is a reflection package?

java. lang. reflect package has the ability to analyze itself in runtime.



What is interface and its use?

Interface is similar to a class which may contain method’s signature only but not bodies and it is a formal set of method and constant declarations that must be defined by the class that implements it. Interfaces are useful for: a)Declaring methods that one or more classes are expected to implement b)Capturing similarities between unrelated classes without forcing a class relationship. c)Determining an object’s programming interface without revealing the actual body of the class.



What is an abstract class?

An abstract class is a class designed with implementation gaps for subclasses to fill in and is deliberately incomplete.



What is the difference between Integer and int?

a) Integer is a class defined in the java. lang package, whereas int is a primitive data type defined in the Java language itself. Java does not automatically convert from one to the other. b) Integer can be used as an argument for a method that requires an object, whereas int can be used for calculations.



What is a cloneable interface and how many methods does it contain?

It is not having any method because it is a TAGGED or MARKER interface.



What is the difference between abstract class and interface?

a) All the methods declared inside an interface are abstract whereas abstract class must have at least one abstract method and others may be concrete or abstract. b) In abstract class, key word abstract must be used for the methods whereas interface we need not use that keyword for the methods. c) Abstract class must have subclasses whereas interface can’t have subclasses.




Can you have an inner class inside a method and what variables can you access?

Yes, we can have an inner class inside a method and final variables can be accessed.



What is the difference between String and String Buffer?

a) String objects are constants and immutable whereas StringBuffer objects are not.

b) String class supports constant strings whereas StringBuffer class supports growable and modifiable strings.

Interview questions on Sorting - Quick Sort

QuickSort

Here are some of the commonly asked and good questions on quick sort.


  1. Determine the running time of QuickSort for

    a.Sorted input
    b.reverse -ordered input
    c.random input
    d. When all the elements are equal



  2. The ones who are familiar with QuickSort as also well aware of the important phase of the algorithm-the pivot selection.Suppose we always choose the middle element as the pivot .Does this make it unlikely that QuickSort will require quadratic time?




  3. What is the worst-case behavior (number of comparisons) for quick sort?



  4. In selecting the pivot for QuickSort, which is the best choice for optimal partitioning:
    a.The first element of the array
    b.The last element of the array
    c.The middle element of the array
    d.The largest element of the array
    e.The median of the array
    f.Any of the above



  5. In its worst case QuickSort behaves like:
    a.Bubble sort
    b.Selection sort
    c.Insertion sort
    d.Bin sort




  6. Describe an efficient algorithm based on Quicksort that will find the element of a set that would be at position k if the elements were sorted.



  7. Recall that the linked-list version of quicksort() puts all items whose keys are equal to the pivot's key into a third queue, which doesn't need to be sorted. This can save much time if there are many repeated keys.

    The array-based version of quicksort() does not treat items with equal keys specially, so those items are sorted in the recursive calls.

    Is it possible to modify array-based quicksort() so that the array is partitioned into three parts (keys less than pivot, keys equal to pivot, keys greater than pivot) while still being in-place? (The only memory you may use is the array plus a constant amount of additional memory.)

    Why or why not?

Latest Data Structures Interview Questions

1. Write a C program to find the depth or height of a binary tree.



2. Write a C program to determine the number of elements (or size) in a binary tree.



3. Write a C program to delete a tree (i.e, free up its nodes)



4. Write a C program to find the minimum value in a binary search tree.



5. Write a C program to create a mirror copy of a tree (left nodes become right and right nodes become left)


6. Write C code to implement the preorder(), inorder() and postorder() traversals. Whats their time complexities?

7. Write a C program to create a copy of a tree


8. Write a C program to check if a given binary tree is a binary search tree or not?


9. Write a C program to implement level order traversal of a tree.
Solution:Breadth First Search of the tree gives the level order traversal.

10. Write a C program to delete a node from a Binary Search Tree?


11. Write a C program to search for a value in a binary search tree (BST).

12. Write a C program to count the number of leaves in a tree

13. Write a C program for iterative preorder, inorder and postorder tree traversals
Solution:Use stacks to depict the function calls.Not much different from routine traversals.

Latest Data Structures Interview Questions

Dynamic Programming is a method of solving problems exhibiting the properties of overlapping subproblems and optimal substructure that takes much less time than naive methods.It is typically applied to optimization problems.

Longest Common subsequence and substring:

Longest Common subsequence and substring are two applications of Dynamic Programming.The longest common subsequence problem is finding the longest subsequence common to all sequences in a set of sequences (often just two) while longest common substring is finding the longest substring.

1)Determine an LCS of {1,0,0,1,0,1,0,1} and {0,1,0,1,1,0,1,1,0}.
2)Give an algorithm to find the Longest common subsequence of sequences with lengths m,n respectively and also analyze their time complexities.
3)Give an algorithm to find the Longest common string of strings with lengths m,n respectively and also analyse their time complexities.
4)Give an O(n^2) time algorithm to find the longest monotonically increasing subsequence of a sequence of n numbers.
5)Give an O(n^2) time algorithm to find the longest monotonically increasing subsequence of a sequence of n numbers.
6)What is the difference between longest common subsequence and longest common substring
7)State few applications of Dynamic Programming.

Latest Data Structures Interview Questions

1)Explain how to implement two stacks in one array A[1,...,n] in such a way that neither stack overflows unless the total number of elements in both stacks together is n. The run time of PUSH and POP is O(1).

2)Explain how to implement a queue using two stacks. Analyse the running time of the queue operations.

3)Explain how to implement a stack using two queues. Analyse the running time of the stack operations.

4)Write four O(1)-time procedures to insert elements into and delete elements from both ends of a deque constructed from an array.

5)Implement a stack using a singly linked list L. The run time of PUSH and POP should be O(1).

6)Implement a queue using a singly linked list L. The run time of ENQUEUE and DEQUE should be O(1).

7)Can the dynamic-set operation INSERT be implemented on a singly linked list in O(1) time? What about DELETE?

8)Implement the dictionary operations INSERT,DELETE and SEARCH using singly linked,circular lists.What are the running times of the procedures?

9)Give a THETA(n)-time nonrecursive procedure that reverses a singly linked list of n elements. The procedure should use no more than constant storage beyond that needed for the list itself.

10)Write the operations of INSERT, DELETE and SEARCH in a linked list.Also, how do we reverse a linked list?

Latest Data Structures Interview Questions

1)Illustrate the operation of Counting-Sort on the array A={6,0,2,0,1,3,4,6,1,3,2}

2)Illustrate the operation of Radix-Sort on the following list of English words: COW,DOG,SEA,RUG,ROW,MOB,RAT,BAT,BAR,EAR,TAR,DIG,BIG,TEA,NOW,FOX}.

3)Illustrate the operation of Bucket Sort on the array A={.81,.09,.13,.61,.43,.23,.98,.60,.75,.41}.

4)Explain how to sort n integers in the range 0 to n^2-1 in O(n) time.

5)Which of the following sorting algorithms are stable: insertion sort,merge sort,heapsort and quicksort? Give a simple scheme that makes any sorting algorithm stable. How much additional time and space does the scheme take?

6)What is the worst-case running time for the bucket-sort algorithm? What simple change to the algorithm preserves its linear expected running time and makes its worst-case running time O(nlgn)?

7)Describe an algorithm that, given n integers in the range 0 to k,preprocesses its input and then answers any query about how many of the n integers fall into a range [a...b] in O(1) time.The algorithm should use THETA(n+k) preprocessing time.

8)When are Radix and Bucket sorts used?


Latest Data Structures Interview Questions

1)What is the expected time to search for an element in a hash table?

2)What is the worst case time for searching a element using hash table.

3)Demonstrate the insertion of the keys 5,28,19,15,20,33,12,17,10 into a hash table with collisions resolved by chaining.Let the table have 9 slots,and let the hash function be h(k)=k mod 9.

4)Suppose we use a hash function to hash m distinct keys into an array T of length m.Assuming simple uniform hashing,what is the expected number of collisions?

5)Suggest how storage for elements can be allocated and deallocated within the hash table itself by linking all unused slots into a free list.Assume that one slot can store a flag and either one element plus a pointer or two pointers.Does the free list need to be doublt linked,or does a singly linked free list suffice?

6)Suppose we wish to search a linked list of length n,where each element contains a key k along with a hash value h(k).Each key is a long character string.How might we take advantage of the hash values when searching the list for an element with a given key?

Latest c c++ Interview Questions Answers

We complete the trees sections in this post adding some more questions to the already posted ones.

1)What are splay trees?How are they different from normal trees?

2)What are the key operations which characterize splay trees?

3)How are AVL rotations different from the operations performed in splay trees?

4)Show that if all the nodes in a splay tree are accessed sequentially,then the total access time is O(N),regardless of the initial tree?

5)Given 2 binary trees T1 and T2 with same set of nodes,show how you can transform one in to the other?

6)Give an algorithm to transform a binary tree T1 into another binary tree T2?

7)Give an algorithm to find all the elements between 2 keys K1 and K2 with K1<=K2
in a binary search tree T?

8)How do you convert the parent-child tree to a child-sibling tree(assume the tree is a binary tree)?

9)Two binary trees T1 and T2 are isomorphic if T1 can be transformed into T2 swapping left and right children of the nodes in T1.Give an algorithm to report whether 2 given binary trees are isomorphic.

10)Analyze the complexity of the above algorithm and report whether there exists a linear solution to it?

Frequently asked C++ Interview Questions

In C++, what is the difference between method overloading and method overriding?

Overloading a method (or function) in C++ is the ability for functions of the same name to be defined as long as these methods have different signatures (different set of parameters). Method overriding is the ability of the inherited class rewriting the virtual method of the base class.


What methods can be overridden in Java?

In C++ terminology, all public methods in Java are virtual. Therefore, all Java methods can be overwritten in subclasses except those that are declared final, static, and private.


What are the defining traits of an object-oriented language?

The defining traits of an object-oriented langauge are:
* encapsulation
* inheritance
* polymorphism


Write a program that ask for user input from 5 to 9 then calculate the average


int main()
{
int MAX=4;
int total =0;
int average=0;
int numb;
cout<<"Please enter your input from 5 to 9";
cin>>numb;
if((numb <5)&&(numb>9))
cout<<"please re type your input";
else
for(i=0;i<=MAX; i++)
{
total = total + numb;
average= total /MAX;
}
cout<<"The average number is"<<

return 0;
}

Can you be bale to identify between Straight- through and Cross- over cable wiring? and in what case do you use Straight- through and Cross-over?

Straight-through is type of wiring that is one to connection, Cross- over is type of wiring which those wires are got switched
We use Straight-through cable when we connect between NIC Adapter and Hub. Using Cross-over cable when connect between two NIC Adapters or sometime between two hubs.


If you hear the CPU fan is running and the monitor power is still on, but you did not see any thing show up in the monitor screen. What would you do to find out what is going wrong?

I would use the ping command to check whether the machine is still alive(connect to the network) or it is dead.


Assignment Operator - What is the diffrence between a "assignment operator" and a "copy constructor"?

Answer1.
In assignment operator, you are assigning a value to an existing object. But in copy constructor, you are creating a new object and then assigning a value to that object. For example:

complex c1,c2;
c1=c2; //this is assignment
complex c3=c2; //copy constructor


Answer2.
A copy constructor is used to initialize a newly declared variable from an existing variable. This makes a deep copy like assignment, but it is somewhat simpler:

There is no need to test to see if it is being initialized from itself.
There is no need to clean up (eg, delete) an existing value (there is none).
A reference to itself is not returned.


"mutable" Keyword - What is "mutable"?

Answer1.
"mutable" is a C++ keyword. When we declare const, none of its data members can change. When we want one of its members to change, we declare it as mutable.

Answer2.
A "mutable" keyword is useful when we want to force a "logical const" data member to have its value modified. A logical const can happen when we declare a data member as non-const, but we have a const member function attempting to modify that data member. For example:

class Dummy {
public:
bool isValid() const;
private:
mutable int size_ = 0;
mutable bool validStatus_ = FALSE;
// logical const issue resolved
};

bool Dummy::isValid() const
// data members become bitwise const
{
if (size > 10) {
validStatus_ = TRUE; // fine to assign
size = 0; // fine to assign
}
}

Answer2.
"mutable" keyword in C++ is used to specify that the member may be updated or modified even if it is member of constant object. Example:

class Animal {
private:
string name;
string food;
mutable int age;
public:
void set_age(int a);
};

void main() {
const Animal Tiger(’Fulffy’,'antelope’,1);
Tiger.set_age(2);
// the age can be changed since its mutable
}

RTTI - What is RTTI?

Answer1.
RTTI stands for "Run Time Type Identification". In an inheritance hierarchy, we can find out the exact type of the objet of which it is member. It can be done by using:

1) dynamic id operator
2) typecast operator

Answer2.
RTTI is defined as follows: Run Time Type Information, a facility that allows an object to be queried at runtime to determine its type. One of the fundamental principles of object technology is polymorphism, which is the ability of an object to dynamically change at runtime.


STL Containers - What are the types of STL containers?

There are 3 types of STL containers:

1. Adaptive containers like queue, stack
2. Associative containers like set, map
3. Sequence containers like vector, deque


Bitwise Operations - Given inputs X, Y, Z and operations | and & (meaning bitwise OR and AND, respectively), what is output equal to in?

   output = (X & Y) | (X & Z) | (Y & Z);

C++ Interview Questions and Answers

What is the difference between char a[] = “string”; and char *p = “string”;?

In the first case 6 bytes are allocated to the variable a which is fixed, where as in the second case if *p is assigned to some other value the allocate memory can change.


What’s the auto keyword good for?

Answer1
Not much. It declares an object with automatic storage duration. Which means the object will be destroyed at the end of the objects scope. All variables in functions that are not declared as static and not dynamically allocated have automatic storage duration by default.

For example
int main()
{
int a; //this is the same as writing “auto int a;”
}

Answer2
Local variables occur within a scope; they are “local” to a function. They are often called automatic variables because they automatically come into being when the scope is entered and automatically go away when the scope closes. The keyword auto makes this explicit, but local variables default to auto auto auto auto so it is never necessary to declare something as an auto auto auto auto.


What is the difference between char a[] = “string”; and char *p = “string”; ?

Answer1
a[] = “string”;
char *p = “string”;

The difference is this:
p is pointing to a constant string, you can never safely say
p[3]=’x';
however you can always say a[3]=’x';

char a[]=”string”; - character array initialization.
char *p=”string” ; - non-const pointer to a const-string.( this is permitted only in the case of char pointer in C++ to preserve backward compatibility with C.)

Answer2
a[] = “string”;
char *p = “string”;

a[] will have 7 bytes. However, p is only 4 bytes. P is pointing to an adress is either BSS or the data section (depending on which compiler — GNU for the former and CC for the latter).

Answer3
char a[] = “string”;
char *p = “string”;

for char a[]…….using the array notation 7 bytes of storage in the static memory block are taken up, one for each character and one for the terminating nul character.

But, in the pointer notation char *p………….the same 7 bytes required, plus N bytes to store the pointer variable “p” (where N depends on the system but is usually a minimum of 2 bytes and can be 4 or more)……


How do I declare an array of N pointers to functions returning pointers to functions returning pointers to characters?

Answer1
If you want the code to be even slightly readable, you will use typedefs.
typedef char* (*functiontype_one)(void);
typedef functiontype_one (*functiontype_two)(void);
functiontype_two myarray[N]; //assuming N is a const integral

Answer2
char* (* (*a[N])())()
Here a is that array. And according to question no function will not take any parameter value.


What does extern mean in a function declaration?

It tells the compiler that a variable or a function exists, even if the compiler hasn’t yet seen it in the file currently being compiled. This variable or function may be defined in another file or further down in the current file.


How do I initialize a pointer to a function?


This is the way to initialize a pointer to a function
void fun(int a)
{

}

void main()
{
void (*fp)(int);
fp=fun;
fp(1);

}

How do you link a C++ program to C functions?

By using the extern "C" linkage specification around the C function declarations.


Explain the scope resolution operator.

It permits a program to reference an identifier in the global scope that has been hidden by another identifier with the same name in the local scope.


What are the differences between a C++ struct and C++ class?

The default member and base-class access specifiers are different.


How many ways are there to initialize an int with a constant?

Two.
There are two formats for initializers in C++ as shown in the example that follows. The first format uses the traditional C notation. The second format uses constructor notation.
int foo = 123;
int bar (123)

How does throwing and catching exceptions differ from using setjmp and longjmp?

The throw operation calls the destructors for automatic objects instantiated since entry to the try block.


What is a default constructor?

Default constructor WITH arguments class B { public: B (int m = 0) : n (m) {} int n; }; int main(int argc, char *argv[]) { B b; return 0; }


What is a conversion constructor?

A constructor that accepts one argument of a different type.


What is the difference between a copy constructor and an overloaded assignment operator?

A copy constructor constructs a new object by using the content of the argument object. An overloaded assignment operator assigns the contents of an existing object to another existing object of the same class.


When should you use multiple inheritance?

There are three acceptable answers: "Never," "Rarely," and "When the problem domain cannot be accurately modeled any other way."


Explain the ISA and HASA class relationships. How would you implement each in a class design?

A specialized class "is" a specialization of another class and, therefore, has the ISA relationship with the other class. An Employee ISA Person. This relationship is best implemented with inheritance. Employee is derived from Person. A class may have an instance of another class. For example, an employee "has" a salary, therefore the Employee class has the HASA relationship with the Salary class. This relationship is best implemented by embedding an object of the Salary class in the Employee class.


When is a template a better solution than a base class?

When you are designing a generic class to contain or otherwise manage objects of other types, when the format and behavior of those other types are unimportant to their containment or management, and particularly when those other types are unknown (thus, the genericity) to the designer of the container or manager class.


What is a mutable member?

One that can be modified by the class even when the object of the class or the member function doing the modification is const.


What is an explicit constructor?

A conversion constructor declared with the explicit keyword. The compiler does not use an explicit constructor to implement an implied conversion of types. It’s purpose is reserved explicitly for construction.


What is the Standard Template Library (STL)?

A library of container templates approved by the ANSI committee for inclusion in the standard C++ specification.
A programmer who then launches into a discussion of the generic programming model, iterators, allocators, algorithms, and such, has a higher than average understanding of the new technology that STL brings to C++ programming.