Wednesday, September 28, 2016

HR ROUND INTERVIEW QUESTIONS

In This article I am writing Frequently ask HR Round Interview Questions with answers.       
So friends,be ready after clear your Technical Rounds successfully to clear your final Round that is HR Round as well. Of course, HR Rounds being final Round for any interview. By the Way guys you can also visit about Interview Tips very helpful to prepare for interview.

Now, Let's Start with our First Interview Question in any Interview that is


1. Tell us something about yourself?


Ans:  This is the first questions, you can expect during any interview you face. This is usually is a question to start the communication and set the ball rolling for the interview. You can provide some information about your work experience,technologies you have worked upon,education qualifications.If you are a fresher then you can provide some more information about your family also.





2. What do you know about us?

Ans:  Research the company and its business a bit before appearing for the interview. Also, find out a bit about the technologies they work upon. You don't need to know everything inside out but having fair idea about the company makes you appear interested in the position,to be taken seriously. For example: I see that you company does lot of projects based on Open source platforms like JAVA, joomla which is  quite interesting as i have similar kind of experience.


3. Can you work under pressure?


Ans: Most of the time , the job of software development is that  of working under pressure. Sometimes,it will be the pressure of delivering on time while it can be that of a bug that has sprung all of a sudden in your code. So, expect pressure in everything you do. It is important to maintain your performance and develop to deliver under pressure. 


4. Have you ever fired anyone? How would you go about firing a person,if required?


Ans: The basic purpose of asking this question is to check your EQ and see if you have the guts to make tough decisions. If you have fired anyone in the past,discuss your experience and approach. If you have never done so in the past, discuss the approach you would take to make and implement such a decision. 


5.  What motivates you at work?


Ans: You can mention things like ? new challenges, good environment which all employers think that they offer.


6. What kind of a salary are you looking for?


Ans: Most of the companies will have a fixed remuneration for each level. However, this is negotiable,you will have more negotiation power if you have some work experience. 


7.  Why do you consider yourself a suitable candidate for this position?


Ans:  The answer is to this question lies in the preparation you did before the interview. It is extremely important that you research the requirements of the position well and match them with your skills.


8. What do you do to improve your knowledge?


Ans:  The field of IT is very revolutionary. It is extremely important to keep yourself abreast with the new technological developments and this needs you to take some time out of your work schedule so that you can keep sharpening your saw. Simply say answer,you can tell the recruiter about the forums which you keep visiting,blogs which you keep reading.


9. What position would you prefer while working on a project?


Ans:  This question is for you to answer based on the skills and qualities you have. If you have the capability to handle different positions,discuss that also in the interview.


10.Do you have any questions for us?


Ans:  This is usually last question you can expect during an interview. It is extremely important to have some intelligent questions to ask the interviewer otherwise you may just sound dull and un-interested. Research the company  a bit and discuss if they have been in news recently. You can also discuss about the growth prospects for you within the company.

Wednesday, September 21, 2016

INTERVIEW TIPS

In This Article I am writing some common reasons for Employer Rejection
in interview and at the same time i am writing how get employee checklist.

Here are some common Reasons for Employer Rejection:


  • Poor personal appearance
  • Weak Handshake
  • Late to Interview
  • Indefinite responses to questions
  • poor voice,diction,grammar
  • Inability to express oneself clearly
  • lack of planning for career that means no goals or purpose
  • lack of confidence 
  • failure to look interviewer in the eye
  • unwilling to start at bottom that means expects too much too soon
  • makes excuses
  • lack of tact
  • lack of manners,courtesy
  • lack of maturity
  • lack of vitality
  • low moral standards
  • intolerant;strong prejudices
  • failure to ask questions
  • Timid; lacks sufficient degree of assertiveness
  • over aggressive
  • not prepared for interview
  • no research on company 
  • lack of knowledge of field of specialization
  • not well qualified 






Now we will see what are qualities to get in Interview Check List:


  • Arrived early for the interview
  • Dressed appropriately that means pressed clothing and shoes shined
  • presented a firm handshake
  • Presented a professional image
  • prepared for interview by knowing resume inside and out
  • prepared for interview by knowing the skills required
  • prepared for interview by knowing  the company's products/services
  • prepared for interview by researching company's problems,strengths, and possible  plans for the future.
  • maintained good eye contact
  • spoke with authority and confidence
  • Adjusted the volume of your voice and the accentuation of words
  • Did not laugh inappropriately that means nervous laughter
  • Presented a natural,not stiff or rigid and appearance
  • Body language supported what you were saying
  • Presented your skills and abilities well
  • Good listening skills
  • Presented your benefits to the employer well
  • Clarified any misunderstandings that may have arisen
  • Give examples from your experience to illustrate skills and benefits
  • Give interviewer the impression that you were prepared for this interview
  • Communicated to the employer the reasons why you are applying to and chose this company
  • Thanked the interviewer for the interview
  • indicated commitment to the position
  • Honestly presented your qualifications for and commitment to the position






Tuesday, September 20, 2016

TOP 20 Android Interview Questions and Answers

HI Friends!!! I am Back with some frequently asked android interview questions with
best answers.Therefore,Android techies should brush up before facing technical round
to clear round with confidence. I hope this article for freshers as well as experienced techies.


1. What is Android?

Ans: Android is a stack of software for mobile devices which has Operating System,middleware and some key applications. The application executes within its own process and its own instance of Dalvik Virtual Machine. Many Virtual Machines run efficiently by a DVM device. DVM executes java language byte code which later transforms into .dex format files.


2. What are the advantages of Android?

Ans:  The fallowing are the advantages of Android:


  1. the customer will be benefited from wide range of mobile applications to choose
  2. Features like weather details,live RSS feeds,opening screen,icon on the opening screen can be customized 
  3. innovative products like location aware services,locations of nearby convenience store etc..
  4. SQLite enables to store the data in a structured manner
  5. Support GSM telephone and Bluetooth,WIFI,3G and EDGE Technologies
  6. The development is a combination of a device emulator,debugging tools,memory profiling and plug-in for
3. How to Remove Desktop Icons and Widgets?

Ans:  Press and Hold icon or widget, then the phone will vibrate and on the bottom of the phone you will see an option to remove. while still holding the icon or widget drag it to the remove button. Once remove turns red drop the item and it is gone

4. Describe a real time scenario where android can be used?

Ans:  Imagine a situation that you are in a country where no one understands the language you speak and you can not read or write. However, you have mobile phone with you. By that time it is very helpful to communicate

5. How to select more than one option from android list in android XML file?

Ans:  just simple, Specify android id,layout height and width.







6.  What is the Guardian app for android?

Ans:  The Guardian app for Android delivers all the best content from guardian.co.uk to your phone or tablet. Read the latest news,sport,comment and reviews,watch video,listen to brodcasts and browse stunning picture galleries while on the move.

7. What if my App uses location API,and service provider API, and service Provider shuts that off,can they?

Ans: They can do that? it's not a perfect world. Rather than having us dictate what carries and OEM's support,we let developers develop killer apps that will require it. we want to ensure all the application development that goes on for Android. We want to give OEMs an incentive to keep things open. It's a positive , self fulfilling vision.

8. How to add sections to my favorites?

Ans: It is possible to add sections,topics and contributors to your  favorites. You can add to favorites by tapping the star icon in the top right hand corner of the relevant screens,or on the right hand side of the headers in the all sections menu.

9.  Why would i choose an Android phone over iPhone?

Ans:  Well, for a variety of reasons? although i should point out that i am actually a fan of both operating systems.One reason to go the Google way is that Android phones boast tight integration with Google services like Gmail,Google Calendar, Google Contacts and Google Voice? Perfect for anyone who uses Google for all their e-mails,contacts and events.Indeed,one of the coolest things about android phones is that the first time you fire one up,you enter your Google user name and password,and voila: All your Google messages,contacts and other info start syncing into your new handset automatically, no desktop syncing needed. Android is also far more open when it come to applications. Whereas apple takes a "walled garden" approach to its app store, Google won't restrict you from installing apps that aren't featured in its official android marketplace.iPhone users,on the other hand, must "jailbreak" their phones if they want to install apps that weren't approved by apple for inclusion in the App Store.

10. How many apps are available for Android?

Ans: About 70,000 or so, growing by the day? still just a fraction of the 225,000 plus apps in the Apple app Store,but the official Android marketplace has quite the head of steam,not to mention plenty of good will from the developer community given that Google doesn't give apps the star chamber treatment.


11. Can you deploy executable JARs on Android? which packaging is supported by Android?

Ans: No. Android platform does not support JAR deployments. Applications are packed into Android package(.apk)using Android Asset Packaging Tool(aapt)and then deployed on to android platform. Google provides android development tools for Eclipse that can be used to generate Android Package.

12. How does Android System track the applications?

Ans:  Android system assigns each application a unique ID that is called Linux user ID. This ID is used to track each application.

13.  How can two Android applications share same Linux User ID and share same VM?

Ans: The applications must sing with same certificate in order to share same Linux user ID and share same VM.

14.  What is Dalvik?

Ans:  The name of Android's virtual machine. The Dalvik VM is a interpreter-only virtual machine that executes files in the Dalvik Executable(.dex)format,a format that is optimized for efficient storage and memory mappable execution. The virtual machine is register based , and it can run classes compiled by a java language compiler that have been transformed into its native format using the included .dx tool. The VM runs on top of posix-compliant operating systems,which it relies on for underlying functionality. 


15. Android application can only be programmed in java?

Ans: False. You can program android apps in C/C++ using NDK.


16.  How do i find and download updates to the E.ON android applications?

Ans: any updates to our app will appear on your notification menu at the top of your screen. just tap on the E.ON app icon and you will be taken into the android market and be presented with E.ON app download page.

17. How will you record a phone call in android? or how to handle an audio stream for a call in android?

Ans: Permission: PROCESS_OUTGOING_CALLS: will allow an application to monitor,modify,or abort outgoing calls. So using that permission we can monitor the phone calls.

18.  What is an DDMS?

Ans: Dalvik Debug Monitor Service, a GUI debugging application shipped with the SDK. It provides screen capture,log dump,and process examination capabilities.

19. How many ways data stored in Android?

Ans: 1. SharedPreferences
          2. internal storage
          3. External storage
          4. SQLite Database
          5. Network Connection

20. How to send SMS in android? Explain with Example?

Ans: SMS messaging is one of the basic and important applications on a mobile phone. Now a days every mobile phone has SMS messaging capabilities,and nearly all users of any age know how to send and receive messages,mobile phones come with a built-in SMS application that enables you to send and receive SMS messages. If you want to send SMS programmatically then fallow steps.

Take a button on activity_main.xml file as fallows.

<Button android:id="@+id/btnSendSMS"
     andriod:layout_width="wrap_content"
     android:layout_centerHorizontal="true"
     android:layout_centerVertical="true"
     android:onClick=?sendmySMS?android:text="sendSMS"/>

According to above code when user clicks the button sendmySMS method will be called.sendmySMS is user defined method.

In the AndroidManifest.xml file, add the fallowing statements:

<uses-permissionandroid:name=?android.permission.SEND_SMS?/>

Now we write the final step:
Write the given below method in MainActivity.java file:

public void sendmySMS(View v)
{
SmsMangersms=SmsManager.getDefault();
sms.sendTextMessage("5556"null,"Hello from lucky"null,null);
}
In this example i have used two emulator. On the first android emulator(5554),click the Send SMSbutton to send SMS message to the second emulator(5556).

Describe the SmsManager class in android:

SmsManager class is responsible for sending SMS from one emulator to another or device.
You can not directly instantiate this class; instead, you call the getDefault() static method to obtain an SmsManager object. You then send the SMS message using the sendTextMessage() method:

SmsManager sms=SmsManager.getDefault();
sms.sendTextMessage("5556",null,Hell from lucky"null,null);
sendTextMessage() method take five argument.

destinationAddress? Phone number  of the recepient.

scAddress? Service center address; you can use null also.
text? Content of the SMS message that you want to send.
SentIntent? Pending intent to invoke when the message is sent.

delivery Intent? Pending intent to invoke when the message has been delivered.










Saturday, September 17, 2016

IPHONE TUTORIAL

HI !!! Techies!!!! In this Article I am writing about iPhone Interview Questions
and Answers. Now a days, this is mostly used Smart Phone and great device
by Apple Inc. I hope you people can brush up before attending technical
interview and clear your round with confidence.

1. What is iPhone?

Ans:  iPhone is combination of internet and multimedia enabled smart phone developed by
           Apple Inc. iPhone  functions as a camera phone,including text messaging, and visual voice mail. It also works as portable media player that resembles a video ipod. 

                             It has user interface that is built around the multi-touch screen including virtual keyboard. App store, which launched in the mid 2008 has over 1,00,000 applications with functionalities including  games,references, GPS navigation,advertising,television shows,films,reference,celebrities.

2.  What is iPhone App?

Ans:  An iPhone app is program that runs on our iPhone/iPod Touch. It enables us to accomplish a certain task. They could be utility apps,games,enterprise apps,entertainment apps,apps to access our bank account etc..

3. What are the requirements for developing iPhone Apps?

Ans:  Mac OS 10.5/10.6 and iPhone SDK(Software Development Kit 3.0/4.0)

iPhone SDK contains:

1. IDE to develop iPhone apps is Xcode(This tool is inbuilt in iPhone SDK)

2. Interface Builder(This is used to design GUI of Apps)

3. Instruments(This is used to check any memory leaks in our apps)

4.simulator(This is used to test our apps before deploying into real device)

4.  What is iPhone architecture?

Ans: It is similar to Mac OS x architecture

It acts as an intermediary between the iPhone and iPod hardware an the appearing applications on the screen. The user created applications never interact directly with the appropriate drivers, which protects the user applications from changes to the hardware.

5. Why iPhone apps are popular?

Ans:  
  iPhones are the market leaders in the smart phone segment. The iPhone has become a great device to surf internet, play games, interact with social networking and transact business.

                         Therefore, to give our business a whole new way of transacting business for millions of users.

6. How to install an iPhone application for testing?

Ans:  After being successfully registered in a developer's testing program,the developer sends you an archive containing two files:

1. The application
2. provisioning profile

7.  Where you can test apple iPhone apps if you don't have the device?

Ans:  IOS Simulator can be used to test mobile applications. Xcode tool that comes along with iOS SDK include  Xcode IDE as well as the iOS simulator. Xcode also includes all required tools and frameworks for building iOS apps. However, it is strongly recommended to test the app on the real device before publishing it.

8. How can an Operating System improve battery life while running an app?

Ans: An app is notified whenever the OS moves the apps between foreground and background. The OS improves battery life while it bounds what your app can do in the background. This also improves the user experience with foreground app.

9. what are the popular apps of iPhone?

Ans: Social networking  - Face book
          drawing                  -  Doodle Buddy
            Pandora Radio    - radio on our iPhone
            restaurant reviews - Yelp

10. What is iPhone SDK?

Ans:  iPhone SDK is available with tools and interfaces needed for developing,installing and running custom native applications. Native applications are built using the iPhone OS's system frameworks and Objective-C- language and run directly on iPhone OS. Native applications are installed physically on presence or absence  of networks connection

               
         




Thursday, September 15, 2016

Core Java Interview Questions and Answers

In this Article I am writing popular Java Interview Questions in Technical Round for Beginners and Experienced Techies.So, Before attend the Technical Round brush up this Article to clear the round.

1. Can you access non static variable in static context?

Ans:  A static variable in java belongs to its class and its value remains the same for all its instances. A static variable is initialized when the class is loaded by the JVM. if your code tries to access a non-static variable without any instance,the compiler will complain, because those variables are not created yet and they not associated with any instance.

2. What are pass by reference and pass by value?

Ans: When an Object is passed by value, this means that a copy of the object is passed. Thus, even if changes are made to that object,it doesn't affect the original value. When an object is passed by reference,this means that the actual object is not passed, rather a reference of the object is passed. Thus, any changes made by external method are also reflected in all places.

3.What is benefit of Generic in Collections Framework?

Ans: Java 1.5 came with Generics and all collection interfaces and implementations use it heavily. Generics allow us to provide the type of object that a collection can contain,so if you try to add any element of other type it throws compile time error. This avoids ClassCastException at runtime because you get the error at compilation. Also Generics make code clean since we don't need to use casting and instanceof operator. I would highly recommend to go through  java Generic Topic to understand Generics  in a better way.

4. Why Collection does not extend Cloneable  and Serializable interfaces?

Ans: Collection interface specifies group of Objects known as elements. How the elements are maintained is left up to the concrete implementations of collection. For example,some collection implementations list  List allow duplicate elements whereas other implementations like Set don't. A lot of the collection implementations have a public clone method. However, it doesn't really make sense to include it in all implementations of collection.This is because Collection is an abstract representation.The specific implementation should make the decision as to whether it can be cloned or serialized.

5. Why there is not method like iterator.add() to add elements to the collections?

Ans: The semantics are unclear, given that the contract for iterator makes no guarantees about the order of iteration. Note, however,that Listiterator does provide an add operation,as it does guarantee the order of the iteration. 


6. Explain the available thread states in a high-level?

Ans:  During its execution, a thread can reside in one of the following states:

NEW: The thread becomes ready to run,but does not necessarily start running immediately.

Runnable: The java virtual machine(JVM) is actively executing the thread's code.

Blocked: The thread is in a blocked state while waiting for a monitor lock.

Waiting: The thread waits for another thread to perform a particular action.

Timed_waiting:  The thread waits for another thread to perform a particular action up to a specified waiting time.

Terminated:  The Thread has finished its execution


7. What if main method is declared is private?

Ans:  The program compiles properly but at runtime it will give Main method not public message

8. If you are overriding the method equals() of an object,which other method you might also consider?

Ans:  hashcode()

9. What do you understand by iterator fail-fast property?

Ans: iterator fail-fast property checks for any modification in the structure of the underlying collection every time we try to get the next element. If there are any modifications found,it throws ConcurrentModificationException. All the implementations of iterator in Collection classes are fail-fast by design except the concurrent collection classes like ConcurrentHashMap and CopyOnWriteArrayList.

10.  How to avoid ConcurrentModificationException while iterating a collection?

Ans: we can use concurrent collection classes to avoid ConcurrentModificationException while iterating over a collection, for example CopyOnWriteArrayList instead of ArrayList.

11) How to create a String?

Ans: In java a String can be created in two ways: They are
1) By String literal
2)Using new keyword

String literal: In this method we creates a String type object and assign a sequence of characters to it enclose with " "

Example:  String s="learnprogramingbyluckysir";

Using new keyword: An String object can be obtained using 'new' keyword as shown below

String str=new String("learnprogramingbyluckysir");



12) What is Wrapper class?

Ans: wrapper classes are classes that allow primitive types to be accessed as objects.

13) What is the use of ValueOf() method?

Ans: ValueOf() method converts data from its internal format into a human readable form.

14) What is the importance of hashcode() and equals() methods?

Ans: In java, a HashMap uses hashcode and equals methods to determine the index of the key-value pair and to detect duplicates. The hashcode method is used in order to determine where the specified key will be stored.Since different keys may produce the same hash value,the equals method  is used,in order to determine whether the specified key actually exists in the collection or not. Therefore, the implementation of both methods is crucial to the accuracy and efefficiency of the HashMap. 

15) How to decide between HashMap and TreeMap()?

Ans:  For inserting,deleting,and locating elements in a Map,the HashMap offers the best alternative. If, however,you need to traverse the keys in a sorted order,then TreeMap is your better alternative. Depending upon the size of your collection,it may be faster to add elements to a HashMap,then convert the map to a TreeMap for sorted key traversal.

16)   What is the primary benefit of Encapsulation?

Ans: The main benefit of encapsulation is the ability to modify our implemented  code without breaking the code of others who use our code. With this encapsulation gives maintainability,flexibility and extensible to our code.

17) What are the ways in which a thread can enter the waiting state?

Ans:  A thread can enter the waiting state by invoking it's sleep() method or by invoking an object's wait() method. It can also enter the waiting state by invoking its suspend() method.

18) How does multi-threading take place on a computer with a single CPU?

Ans: The OS task Scheduler allocates execution time to multiple tasks. By quickly switching between executing tasks,it creates the impression that tasks execute sequentially.

19) What is the use of subclass in a java program?

Ans: The Sub class inherits all the public and protected methods and the implementation. It also inherits all the default modifier methods and their implementation.

20) Is there any limitation of using Inheritance?

Ans: YES, since inheritance inherits  everything from the super class and interface,it may take the subclass too clustering and sometimes error-prone when dynamic overriding or dynamic overloading in some situation

21) When is the ArrayStoreException thrown?

Ans: When copying elements between different arrays,if the source or destination arguments are not arrays or their types are not compatible,an ArrayStoreException will be thrown

22) Why do we need wrapper classes?

Ans: We can pass them around as method parameters whee a method expects an Object. It also  provides utility methods.

23) Why deletion in LinkedList is fast than ArrayList?

Ans: Deletion in linked list is fast because it involves only updating the next pointer in the node before the deleted node and updating the previous pointer in the node after the deleted node.

24) What is difference between path and classpath?


Ans: Path and ClassPath are OS level environment variables. Path is defines where the system can find executable(.exe) files and classpath is used to specify the location of .class files.

25) What is the diff b/w inner class and nested class?

Ans: When a class is defined within a scope of another class,then it becomes inner class. If the access modifier of the inner class is static,then it becomes nested class.


Recommended to Read The following Interview Questions:

JSP INTERVIEW QUESTIONS
Struts Interview Questions
MVC Architecture in Java 
Basic Java Interview Questions
TOP 10 JAVA PROGRAM INTERVIEW QUESTIONS

High Paying Jobs after Learning Python

Everyone knows Python is one of the most demand Programming Language. It is a computer programming language to build web applications and sc...