ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Core Java  >>  Java J2EE  >>  Java Related
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
What is the default modifier in Interface?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is the default modifier in Interface?
Answer
# 1
Default modifier in Interface is public.
 
Is This Answer Correct ?    8 Yes 2 No
Guest
 
  Re: What is the default modifier in Interface?
Answer
# 2
public+abstract for methods

public+abstract for interface declaration 

public+static+final for the interface declaration variable
 
Is This Answer Correct ?    7 Yes 3 No
Ravikiran(aptech Mumbai)
 
 
 
  Re: What is the default modifier in Interface?
Answer
# 3
Public is the default modifier for interface
 
Is This Answer Correct ?    1 Yes 1 No
Prashant Renge
 
  Re: What is the default modifier in Interface?
Answer
# 4
All of the methods in an interface are implicitly abstract. 
Every method declaration in an interface specifies the 
formal parameters and return type of the method, but it 
does not include an implementation of the method. 

All of the variables in an interface are implicitly static 
and final.

Interface Modifiers
The keywords public and abstract can appear as modifiers at 
the beginning of an interface declaration. In this 
situation, these modifiers have the following meanings: 


public

If an interface is declared public, it can be referenced by 
any class or interface. If the public modifier is not used, 
however, the interface can only be referenced by classes 
and interfaces in the same package. A single source file, 
or compilation unit, can only declare one public class or 
interface (see Compilation Units for an exception to this 
rule). 


abstract

An interface is implicitly abstract; so all of the methods 
in an interface are implicitly abstract. Including the 
abstract modifier in an interface declaration is permitted, 
but it does not change the meaning of the interface 
declaration.
 
Is This Answer Correct ?    0 Yes 0 No
Raj Kumar Sav
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
Explain Connection Pooling?  3
What is a default package ?  7
Given: 1. package test; 2. 3. class Target { 4. public String name = “hello”; 5. } What can directly access and change the value of the variable name? 1 any class 2 only the Target class 3 any class in the test package 4 any class that extends Target  3
What is meant by JVM ?  3
Explain class A{} class B{} class C{} all the three classes are saved in a single file name, what the name should i provide to the file ,in what file name should i run the program? Ple Explain DNS6
what is difference between prepare stetement and callable starement with example? CMC1
Real Time sample code for Encapsulation and Abstraction. where to use abstract and where to use specifies like public private.  1
1).Is Object class abstract or not? 2).Is main method(public static void main(String args[])low priority thread or high priority thread? TCS2
To obtain design information about an object, which class in used?  1
what is difference between method overloading & method overridding with example? IBM2
Can an unreachable object become reachable again?  3
When try and catch block is used ?  6
What are the limitations for static method?  3
How GUI component handle its own events?  1
what is a thread? IBM10
what is meant by serialization?  6
wht is mean by dirty read?  1
For which statements we use a label? Wipro3
Explain method overloading and overriding?  6
What is lazy activation? CMC1
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com