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 DEFAULT SPECIFIER IN JAVA
wHAT IS DEFAULT CONSTRUCTOR IN JAVA
wHAT IS DEFAULT METHOD IN JAVA
 Question Submitted By :: Anilsamal
I also faced this Question!!     Rank Answer Posted By  
 
  Re: wHAT IS DEFAULT SPECIFIER IN JAVA wHAT IS DEFAULT CONSTRUCTOR IN JAVA wHAT IS DEFAULT METHOD IN JAVA
Answer
# 1
obj

default constructor

main
 
Is This Answer Correct ?    1 Yes 10 No
Avnish Kumar Dubey
 
  Re: wHAT IS DEFAULT SPECIFIER IN JAVA wHAT IS DEFAULT CONSTRUCTOR IN JAVA wHAT IS DEFAULT METHOD IN JAVA
Answer
# 2
default specifier specifies access level of class
eg:-
class A{
}
this is default
default constructor is constructor with same name as of 
class and no arguments
eg: class A{
A()
}
there is no default method in java
 
Is This Answer Correct ?    12 Yes 2 No
Rohit
 
 
 
  Re: wHAT IS DEFAULT SPECIFIER IN JAVA wHAT IS DEFAULT CONSTRUCTOR IN JAVA wHAT IS DEFAULT METHOD IN JAVA
Answer
# 3
default specifier is private

default constructor is className(){}

there is no default method in java
 
Is This Answer Correct ?    2 Yes 5 No
Guest
 
  Re: wHAT IS DEFAULT SPECIFIER IN JAVA wHAT IS DEFAULT CONSTRUCTOR IN JAVA wHAT IS DEFAULT METHOD IN JAVA
Answer
# 4
default specifier is-default
default constructor
no default method
 
Is This Answer Correct ?    1 Yes 1 No
Renu
 
  Re: wHAT IS DEFAULT SPECIFIER IN JAVA wHAT IS DEFAULT CONSTRUCTOR IN JAVA wHAT IS DEFAULT METHOD IN JAVA
Answer
# 5
DEFAULT SPECIFIER IN JAVA:
There are 4 types of accessibility specifier in java, they
are private,public,protected and default.
There is no key word in java to specify default specifier 
When we do not specify any specifier which means default
specifier,

For Example :
 public String getName(){...} 
// here accessibility specifier  is public

 String getName(){...} 
// here accessibility specifier is defalut, whose scope    
is package-scope means this method is not accessible outside
the current package

DEFAULT CONSTRUCTOR IN JAVA:
Default constructor is the implicit constructor provided by
the compiler when we do not specify any constructor in our class
Default constructor looks like..
---------------------------------
<Access Modifier> <class_name>(){
super();// implicit super call
}

I have not heard about any default method in java..As far my
knowledge there is no default method till JAVA platform 1.4....
 
Is This Answer Correct ?    2 Yes 0 No
Debasankar
 
  Re: wHAT IS DEFAULT SPECIFIER IN JAVA wHAT IS DEFAULT CONSTRUCTOR IN JAVA wHAT IS DEFAULT METHOD IN JAVA
Answer
# 6
Default Specifier is : friendly. but there is no keyword 
provided by java

Default Construtor is : the constructor of top level super 
class of each java class that is "Object" class.

Default Method is : main method that would called by 
default through the java interpretor.
 
Is This Answer Correct ?    2 Yes 0 No
Devesh Dashora
 
  Re: wHAT IS DEFAULT SPECIFIER IN JAVA wHAT IS DEFAULT CONSTRUCTOR IN JAVA wHAT IS DEFAULT METHOD IN JAVA
Answer
# 7
DEFAULT SPECIFIER IN JAVA IS CALLED AS PACKAGE ACCESS

DEFAULT SPECIFIER IN JAVA IS CALLED AS CLASS NAME() WHICH 
WAS PROVIDED BY COMPILER DURING COMPILATION TIME

THERE IS NO DEFAULT METHOD IN JAVA
 
Is This Answer Correct ?    0 Yes 0 No
Sanjay
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
in a constructor what happen if u call super and this in the same class? i know that it is not possible to call both in the same one? if we call what will happen? ITC-Infotech5
Can you extend more than one interface?  4
What is run-time class and system class? what is their purpose?  1
can we create instance for interface in java?  2
explain the clone method and clonable interface  1
what is the JNDI?  3
How to print nodes of a Binary tree? TCS1
What is casting? BMC1
Name the types of 'priority'?  2
How to create an instance of a class if the class has private constructor?  2
Is Java is 100% pure OOPS? Explain?  11
What is Connection pooling? Explain Pros and Cons?  1
what Data encapsulation in java?  2
What methods are called, When we navigate from one applet to another applet?  1
what is dynamic method dispatch ? Fidelity8
What is the preferred size of a component?  1
Why all programming languages have main as a execution starting point?  2
Explain the concept of polymorphism with examples?  3
what is jms? features of jms CTS1
what is request processor? Virtusa1
 
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