[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

Technical Interview Questions and Answers :: Aricent

28.79K

Tot. Mock Test: 0


Total Qs: 47+

  •  Select All
  •  C++
  •  SQL
  •  Networking
  •  HR Question in TR
  •  Java
  •  C
  •  Data Structure
  •  DBMS
  •  Soft. Engineering
    Answer:

    No Discussion on this question yet!

    Please Login First :

    12 / 47

    What are the range of all class of IP address?
    Answer:

    No Discussion on this question yet!

    Please Login First :

    13 / 47

    Difference between final, finally and finalize?
    Answer:

    Final:




    1. Final is a keyword.

    2. Final is used to apply restrictions on class, method, and variable. The final class can't be inherited, final method can't be overridden and final variable value can't be changed.



    Final Example:



    class FinalExample{



    public static void main(String[] args){



    final int x=100;



    x=200;//Compile Time Error



    }}



    Finally:




    1. Finally is a block.

    2. The finally block always executes when the try block exits. This ensures that the final block is executed even if an unexpected exception occurs. But finally is useful for more than just exception handling - it allows the programmer to avoid having cleanup code accidentally bypassed by a return, continue, or break. Putting cleanup code in a final block is always a good practice, even when no exceptions are anticipated.



    Finally Example:



    class FinallyExample{



    public static void main(String[] args){



    try{



    int x=300;



    }catch(Exception e){System.out.println(e);}



    finally{System.out.println("finally block is executed");}



    } } 



    Finalize:




    1. Finalize is a method.

    2. Finalize is used to perform cleanup processing just before an object is a garbage collected. The runtime system calls its finalize() method. You can write system resources release code in finalize() method before getting garbage collected.



    Finalize Example:



    class FinalizeExample{



    public void finalize(){System.out.println("finalize called");}



    public static void main(String[] args){



    FinalizeExample f1=new FinalizeExample();



    FinalizeExample f2=new FinalizeExample();



    f1=null;



    f2=null;



    System.gc();



    }}

    Please Login First :

    14 / 47

    Difference between StringBuffer and StringBuilder
    Answer:

    StringBuffer:




    1. StringBuffer is less efficient than StringBuilder.

    2. StringBuffer is synchronized i.e. thread safe. It means two threads can't call the methods of StringBuffer simultaneously.



    StringBuilder:




    1. StringBuilder is more efficient than StringBuffer.

    2. StringBuilder is non-synchronized i.e. not thread safe. It means two threads can call the methods of StringBuilder simultaneously.

    Please Login First :

    15 / 47

    What is Normalization?
    Answer:

    Nnormalization is step by step process of spiliting the bigger table into smaller table without changing any functionality. This wil improve the performance.



    There are some way to normalize table 



    A. 1nf



    B.2nf



    C.3nf



     

    Please Login First :

    16 / 47

    Why do we need abstract classes?
    Answer:

    No Discussion on this question yet!

    Please Login First :

    17 / 47

    How is the memory allocation done for a union?
    Answer:

    No Discussion on this question yet!

    Please Login First :

    18 / 47

    What is the different between .a .o .out files? What options will be used to generate the same.
    Answer:

    No Discussion on this question yet!

    Please Login First :

    19 / 47

    What error will have occurred, when you free a pointer twice int *p; free (p); free (p); How to avoid such double deletes?
    Answer:

    No Discussion on this question yet!

    Please Login First :

    20 / 47

    What error you will face when you delete a null pointer? char *p; del *p; *p=null; del *p
    Answer:

    No Discussion on this question yet!

    Please Login First :


Most Frequent Qs.