Core java - Interview Questions and Answers for 'Nagravision' | Search Java Interview Question - javasearch.buggybread.com
Javasearch.buggybread.com
Share

Search Interview Questions


 2796 questions in repository.
 There are more than 200 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 'Nagravision' - 3 question(s) found - Order By Newest

 Q1. Explain Inner Classes ?Core Java
Admin
info@buggybread.com
Ans. The accessibility (public, protected, etc.) of the inner class is defined by the outer class.

Just like top-level classes, an inner class can extend a class or can implement interfaces.

Similarly, an inner class can be extended by other classes, and an inner interface can be implemented or extended by other classes or interfaces.

An inner class can be declared final or abstract.Inner classes can have inner classes, but you will have a hard time reading or understanding such complex nesting of classes.

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

   Like      Discuss      Correct / Improve     java   oops   classes   inner classes     Computer Sciences Corporation (CSC) India  Nagravision      Basic        frequent

Try 2 Question(s) Test


Related Questions

  Why do we need Inner classes ? Cant we just work with outer classes wherever we implement Inner classes ?
 What is the difference between the following two code lines ?

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

2. new OuterClass.InnerClass();
  What are the different types of inner classes ?
 What is the difference between inner class and sub class ?
  Which access specifier can be used with Class ?
  Difference between nested and inner classes ?
  Which of the following cannot be marked static ?
  Explain use of nested or inner classes ?
  What is the benefit of inner / nested classes ?
  Explain Static nested Classes ?


 Q2. What is a class and object ?

or

How would you explain a fresher the concept of class and object in simple terms ?
Core Java2017-01-19 12:39:36

Ans. Class is a template using which objects are created in memory. It's kind of a mold using which objects with body / state are made.


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

   Like      Discuss      Correct / Improve     class  object  class vs object     Nucleus Software Exports  GST Global  Nagravision  American Express      basic        frequent


Related Questions

  Difference between == and .equals() ?
  Why is String immutable in Java ?
  Explain the scenerios to choose between String , StringBuilder and StringBuffer ?

or

What is the difference between String , StringBuilder and StringBuffer ?
  Why do we need Inner classes ? Cant we just work with outer classes wherever we implement Inner classes ?
  What are different ways of object creation in Java ?
  What are different ways to create String Object? Explain.
 What are different types of classes ?
  Why Char array is preferred over String for storing password?
 Difference between Static and Singleton Class ?
  What are the methods of Object Class ?


 Q3. How can we make objects if the constructor is private ? Core Java2018-02-01 21:25:48

 This question was recently asked at 'Nagravision'.This question is still unanswered. Can you please provide an answer.


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

   Like      Discuss      Correct / Improve     constructor     Nagravision


Related Questions

  What are the common uses of "this" keyword in java ?
  Can we use both "this()" and "super()" in a constructor ?
  Why every object constructor automatically call super() in Object before its own constructors?
 What are constructors and Destructors in Java ?
  Does Constructor creates the object ?
  Can constructors be synchronized in Java ?
  Are constructors inherited? Can a subclass call the parent's class constructor? When?
  Difference between object instantiation and construction ?
  Difference Between this() and super() ?
  Which of the following is false about Constructors ?




Subscribe to Java News and Posts. Get latest updates and posts on Java from Buggybread.com
Enter your email address:
Delivered by FeedBurner



comments powered by Disqus
 

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:
         

X Close this

X Close this

Help Us Improve.
Please share your
interview experience.

Company Name:   


Questions Asked: