Interview Questions

Java

  • What are Java Packages? What’s the significance of packages?

    In Java, package is a collection of classes and interfaces which are bundled together as they are related to each other. Use of packages helps developers to modularize the code and group the code for proper re-use. Once code has been packaged in Packages, it can be imported in other classes and used.
  • Can main() method in Java can return any data?

    In java, main() method can’t return any data and hence, it’s always declared with a void return type.
  • What’s the base class in Java from which all classes are derived?

    java.lang.object
  • How can you generate random numbers in Java?

    • Using Math.random() you can generate random numbers in the range 0.1 to 1.0
    • Using Random class in package java.util
  • What’s the purpose of Static methods and static variables?

    When there is a requirement to share a method or a variable between multiple objects of a class instead of creating separate copies for each object, we use static keyword to make a method or variable shared for all objects
  • What is Interning?

    Interning is the process of converting duplicated strings to shared ones. Interned Strings avoid duplicate...
  • What is Bytecode?

    The Java class file contains bytecode which is being interpreted by JVM. Bytecode is introduced in Java to...
  • What is a Garbage collector?

    What is a Garbage collector? - Garbage collector cleans up objects which are no longer used. It is the thread running as part of JVM......
  • What’s the base class in Java from which all classes are derived?

    java.lang.object
  • What are Loops in Java? What are three types of loops?

    Looping is used in programming to execute a statement or a block of statement repeatedly. There are three types of loops in Java: 1) For Loops For loops are used in java to execute statements repeatedly for a given number of times. For loops are used when number of times to execute the statements is known to programmer. 2) While Loops While loop is used when certain statements need to be executed repeatedly until a condition is fulfilled. In while loops, condition is checked first before execution of statements. 3) Do While Loops Do While Loop is same as While loop with only difference that condition is checked after execution of block of statements. Hence in case of do while loop, statements are executed at least once.

PHOTOSHOP

  • Define what is the meaning of a Path?

    A path can be defined as a collection of possibly disconnected, lines and areas describing the image. In simple words, it is a collection of curves and line segments arranged on the page. A path cannot be drawn by itself, but after it is specified it can be stroked (lines) or filled (places) making the proper marks.
  • With the help of spin software how you can make 3D sphere?

    To make 3D sphere, select blur from filter menu and click on radial blur.  Select spin option in the blur method section, you can increase or decrease the amount of spin by dragging the slider.
  • What are the Photoshop’s work areas?

    The Photoshop’s work area includes Application Bar, Option Bar, Panel Dock and Tools panel.
  • Explain how you can sync edits for multiple images in lightroom?

    Once you have edited the image and you want the same changes in other images as well you can use the function “Sync” at the bottom of the develop panel.
  • What is a Bezier curve?

    It is a mathematically defined curve used in two-dimensional graphic applications. It is defined by four points, the initial position, two middle point positions and a terminating position.
  • What tool you can use to combine images?

    You can use Auto-blend layers command to combine images. Auto-blend layers uses layer masks as needed to mask-out over underexposed areas.
  • How you fix the blurry images in Photoshop?

    To fix the blurry images in Photoshop you can use sharpening tools. Sharpening the image will lose the pixels, make sure you are finished with everything else and saved the changes before you start sharpening the image.
  • How you can unlock the background in Photoshop?

    To unlock the background image, first click on the picture or image and then select MODE option. After that, select the option GRAY SCALE and revert to LAYER. When you double click on the surface, the surface will be unlocked.
  • What are Lasso tools and name them?

    With lasso tools precise area of an image can be selected, just by tracing the selection outlines the areas are selected.
    • Simple Lasso Tool
    • Polygonal Lasso Tool
    • Magnetic Lasso Tool
  • What is healing tool?

    Healing tool is used in Photoshop to hide the unwanted spots or pictures that appeared in your original picture and makes picture look like real without any changes.  The tool use complicated algorithm to calculate what would be the area of your picture based on the surrounding pixels

PHP

  • What is the difference between $var and $$var?

    They are both variables. But $var is a variable with a fixed name. $$var is a variable who's name is stored in $var. For example, if $var contains "message", $$var is the same as $message.
  • What is the use of “ksort” in php?

    It is used for sort an array by key in reverse order.
  • How send email using php?

    To send email using PHP, you use the mail() function.This mail() function accepts 5 parameters as follows (the last 2 are optional). You need webserver, you can't send email from localhost. eg :
    <?php mail($to,$subject,$message,$headers); ?>
    mcrypt_encrypt :- string mcrypt_encrypt ( string $cipher , string $key , string $data , string $mode [, string $iv ] ); Encrypts plaintext with given parameters
  • What is the use of mysql_real_escape_string() function?

    It is used to escapes special characters in a string for use in an SQL statement
  • What is the difference between explode() and str_split() functions?

    str_split function splits string into array by regular expression. Explode splits a string into array by string.
  • What is the use of explode() function ?

    Syntax : array explode ( string $delimiter , string $string [, int $limit ] ); This function breaks a string into an array. Each of the array elements is a substring of string formed by splitting it on boundaries formed by the string delimiter.  
  • what is the use of isset() in php?

    This function is used to determine if a variable is set and is not NULL
  • How to find the length of a string?

    strlen() function used to find the length of a string
  • How to set a page as a home page in a php based site ?

    1. index.php is the default name of the home page in php based sites
  • How stop the execution of a php scrip ?

    exit() function is used to stop the execution of a page

Android

  • . What is Orientation?

    Orientation, which can be set using setOrientation(), dictates if the LinearLayout is represented as a row or as a column. Values are set as either HORIZONTAL or VERTICAL.
  • What are containers?

    Containers, as the name itself implies, holds objects and widgets together, depending on which specific items are needed and in what particular arrangement that is wanted. Containers may hold labels, fields, buttons, or even child containers, as examples.
  • What is the importance of XML-based layouts?

    The use of XML-based layouts provides a consistent and somewhat standard means of setting GUI definition format. In common practice, layout details are placed in XML files while other items are placed in source files.
  • List out the advantages of SQL Lite?

    It does not require separate server processor system to operate No setup or administration required SQlite comes with zero-configuration An SQL Lite database can be stored in a single cross-platform disk file SQL Lite is very compact less than 400 KiB SQL Lite is self-contained, which means no external dependencies It supports almost all types of O.S It is written in ANSI-C and provides easy to use API
  • Explain how Boolean values in SQL Lite are stored?

    Boolean values in SQL lite are stored as integers 0 (false) and 1 (true).  SQL Lite does not have a separate Boolean storage class.
  • What will happen if a sensor is not unregistered, after using it for some time?

    Answer : that sensor will keep running in the background, and consumes lot of battery power un-necessarily. Description : If we forget to un-register a sensor after registering, then that sensor will keep running in the background, and consumes lot of battery power un-necessarily.
  • What is Service base class?

    The Service base class defines various callback methods. You don't need to implement all the callbacks methods. However, it's important that you understand each one and implement those that ensure your app behaves the way users expect.
  • What is a bindService()?

    A service is "bound" when an application component binds to it by calling bindService(). A bound service offers a client-server interface that allows components to interact with the service, send requests, get results, and even do so across processes with inter-process communication.
  • When is a Service started?

    A Service is started when a application component such as an activity invokes it by calling startService(). Once started, a service can run in the background indefinitely, even if the component that started it is destroyed
  • What are the forms of Services?

    Services takes two forms:
    • Started
    • Bound
Phone:
+91 99489 57575

Plot No:#24,Flat No:302,Arunodhaya Colony,cyber hills Road,Madhapur
Near Lot Mobile Store  Landmark:Image Gardens Hyderabad,
Telangana 500081
Style switcher RESET
Body styles
Color settings
Link color
Menu color
User color
Background pattern
Background image