Core Java - Interview Questions and Answers for 'Static import' | Search Java 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

   



Core Java - Interview Questions and Answers for 'Static import' - 3 question(s) found - Order By Newest

 Q1. What are concepts introduced with Java 5 ?Core Java
Anonymous
Ans. Generics , Enums , Autoboxing , Annotations and Static Import.

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

   Like         Discuss         Correct / Improve     java   java5   generics   enum   autoboxing   annotations   static import        rare

Try 1 Question(s) Test


Related Questions

  Which annotations are used in Hibernate ?
  Give an Example of Annotations ?
  What are meta Annotations ?
  How to create a Junit to make sure that the tested method throws an exception ?
  What is the use of @GeneratedValue annotation in Hibernate?
  Explain Annotations ?
  What are few of the Annotations pre defined by Java?
  Name few meta-annotations ?
  What entries we make in the hibernate config file if we are not using hbm files but Annotations ?


 Q2. What is a Static import ?Core Java
Anonymous
Ans. By static import , we can access the static members of a class directly without prefixing it with the class name.

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

   Like         Discuss         Correct / Improve     java   java5   static import   static   java keyword   static import     Asked in 4 Companies      basic        frequent


Related Questions

  Which of the following combination of keywords is illegal in Java ?

a. static and transient
b. transient and final
c. static and synchronized
d. abstract and final
  How does volatile affect code optimization by compiler?
  Can we access instance variables within static methods ?
  What is Volatile keyword used for ?
  What is the use of Transient Keyword ?
  What is a Final Method ?
  What is a Final Class ?
  Can we override static methods ? Why ?
  What is "super" used for ?
  What is "this" keyword used for ?


 Q3. Which of the following syntax is correct ?

import static java.lang.System.*;

or

static import java.lang.System.*;
Core Java
Admin
info@buggybread.com
Ans. import static java.lang.System.*;

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

   Like         Discuss         Correct / Improve     java   static import   generics   import


Related Questions

 Is this a valid initialization ? Explain.

Collection<Collection> collection = new LinkedList<LinkedList>();
  What are concepts introduced with Java 5 ?
  Is it legal to initialize List like this ?
  Which of the following syntax are correct ?a. LinkedList<Integer> l=new LinkedList<int>();b. List<Integer> l=new LinkedList<int>();c. LinkedList<Integer> l=new LinkedList<Integer>();d. List<Integer> l = new LinkedList<Integer>();
  Which of the following was not introduced with Java 5 ?
 What are Type Erasures in Java ?
 Explain Generics in Java ?
 In case of generic class declared like following , What can T hold

class MyClass<T>{
T element;
}
 Can we use generics with arrays in Java ?



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: