Interview Questions and Answers for 'Logica' | Search Interview Question - javasearch.buggybread.com
Javasearch.buggybread.com

Search Interview Questions


 More than 3000 questions in repository.
 There are more than 900 unanswered questions.
Click here and help us by providing the answer.
 Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company      Label / Company / Text

   



Interview Questions and Answers for 'Logica' - 3 question(s) found - Order By Newest

  Q1. Explain static blocks in Java ?Core Java
Ans. A static initialization block is a normal block of code enclosed in braces, { }, and preceded by the static keyword. Here is an example:

static {
// whatever code is needed for initialization goes here
}

A class can have any number of static initialization blocks, and they can appear anywhere in the class body. The runtime system guarantees that static initialization blocks are called in the order that they appear in the source code.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     java   oops   static   static block     Asked in 16 Companies      basic        frequent


Related Questions

  How can we run a java program without making any object?
  How can we create objects if we make the constructor private ?
  Similarity and Difference between static block and static method ?
  Will the static block be executed in the following code ? Why ?
  Is it possible to compile and run a Java program without writing main( ) method?
  Will static block for Test Class execute in the following code ?
  Can we initialize member variables within static block ?
  How can we execute a Java class independently if it doesn't have a static main method ?
 Can we create object in static block ?


 Q2. What is CRUD ?Database
Ans. CRUD stands for "Create, read, update and delete" are the basic functions of persistence.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     CRUD  Persistence  Database  Database Operations     Asked in 3 Companies      Basic        frequent


Related Questions

 What is ACID ?
  What is database deadlock ? How can we avoid them?
  What things you would care about to improve the performance of Application if its identified that its DB communication that needs to be improved ?
  If you are given a choice to implement the code to either Insert a Record or Update if already exist, Which approach will you follow ?
  What is the use of @GeneratedValue annotation in Hibernate?
  What are temp tables ?
 What is a Database Trigger ?
 What is database Normalization ?
 What happens to backups if we delete the RDS instance ?
  What is a Cursor ?


 Q3. What is the difference between && and & in Java ?Core Java
Ans. && is a Logical whereas & is a bitwise operator

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     operators  logical vs bitwise operator


Related Questions

  Difference between == and .equals() ?
  What are different ways of object creation in Java ?
 What is instanceOf operator ? Explain it's use ?
 What is the difference between the following two code lines ?

1. new OuterClass().new InnerClass();

2. new OuterClass.InnerClass();
  According to Java Operator precedence, which operator is considered to be with highest precedence?
  Difference between new operator and Class.forName().newInstance() ?
 Does java supports operator overloading ?
  Difference between Class#getInstance() and new operator ?
  What is the difference between >> and >>>?
  Which Java operator is right associative?


 Q4. Which of the following is equivalent to following logic ?

Not X && Not Y
Core Java
a. x || Y
b. Not(X || Y)
c. Not(X && Y)
d. Not X && Y

Ans.b. Not(X || Y)


Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked: