Submit Your Site To The Web's Top 50 Search Engines for Free! Java Tutorial: Learn Java Basics For Free | Learn Java

Sunday, September 13, 2020

Xpanxion Mumbai Interview Questions latest 2020

 Interview Questions and Answers for Xpanxion 2020 Letest Questions & Answers 

All The question of  Xpanxion Round 1st Clear. All type of core Java Question Asking in Xpanxion Company. Interview Questions in Mumbai Xpanxion

Interview Question for Xpanxion Mumbai.




Que 1. What is dot operator ?

Ans:-    The dot operator(.) is used to access the
              instance varibles and methods of class
     objects.it is also used to access classes and
     sub-packages from a package.
===================================================================

Que 2. List any five features of Java ?

Ans:-    Some features include Object Oriented, platform 
             Independent, Robust,interpreted,Multi-threaded.
===================================================================

Que 3. Why deletion in LinkList is fast than ArrayList ?

Ans:-     Deletion in linked list is fast because it involves only
               updating the next pointer in the node before the 
      deleted node and updating the previous pointer in 
              the node after the deleted node.
===================================================================

Que 4. How do you decide when to use ArrayList and LinkList ?

Ans:-     if you need to frequently add and remove elements 
              from the middle of the list and only access the list
             elements sequentially, then LinkList should be used.
             if you need to support random access, without 
             inserting or removing elements from any place 
            other than the end, than ArrayList should be used.
===================================================================

Que 5. What are synchronized methods and synchronized statements ?

Ans:-     synchronized methods are methods that are used to control 
               access to an object.A thread only executes a synchronized method
              after has acquired the lock of the methods object or class. 
              Synchronized Statements are similar to synchronized methods.
             A synchronized statements can only be executed after a thread has 
             acquired the lock of the object or class referenced 
            in the synchronized statement.
===================================================================

Que 6.  What is Polymorphism in Java ? 

Ans:-      Polymorphism is the ability to of an object to take 
       on many forms.The most common use of polymorphism 
               in OOP occur when a parent class reference is used
       to refer to a child class object.
===================================================================

Que 7.  What are native methods? How do you use them ?

Ans:-     Native methods are methods whose implementation is provided 
              in another programming language  such as C.The main objective of native
             method are to improve th performance of the system.
===================================================================

Que 8. What is HAS-A relationship in Java ?

Ans:-     1. HAS-A Relationship is also knows as composition(or) aggregation.
               2. There is no specific keyword to implement HAS-A relationship but mostly 
                   we can use new operator.
              3. The main advantage of  reusability.
===================================================================

Que 9. What is Encapsulation ?

Ans:-     Binding a data and corresponding method in a single 
              unit is called encapsulation.If any class follows data 
      hiding and abstraction such type of class is called encapsulated class.
             ENCAPSULATION= ABSTRACTION+DATA HIDING
===================================================================

 learn java Is for All The java Lover and java beginners.
 Learn java provide java interview preparations Questions And Answers .
 we will do over best for all the java devlopers.
 As a Java professional, it is essential to know the right things
 learn the java technologies and prepare the right answers to commonly 
 asked Java Interview Questions. 
 Here’s a definitive list of top Java Interview Questions that will 
 guarantee a breeze-through to the next level. 

Saturday, September 12, 2020

Interview Questions and Answers for Xpanxion 2020 Letest Questions & Answers 2020

 Interview Questions and Answers for Xpanxion 2020 Letest Questions & Ans

All The question of  Xpanxion Round 1st Clear. All type of core Java Question Asking in Xpanxion Company.


Que 1.   Give a few reasons for using java ?   

Ans:-           Built-in support for multi-threading ,socket communications,                                                                             and memory management. object oriented ,better portability                                                                             then other languages across operating system.support web based                                                                  applications,distributed applications.etc

              

              

Que 2. Tell Me Somthing About OOP'S Concept ?

Ans:-      OOP'S is called object oriented programming.
                  It is a programming  model in java.                                                                                                    OOP'S provide some concept to programming they are.
               1.      Abstraction.
              2.     Data Hiding.
              3.     Encapsulation.
              4.    Tightly encapsulation class.
              5.    IS-A Relationship(Inheritance).
              6    .HAS-A Relationship.
              7.    Method Singnature
              8    .Polymorphism
              9.   Static Control Flow.
            10.   Singleton Class.
            11.   Fectory Method.


Que 3. What is Polymorphism in Java ? 

Ans:-   Polymorphism is the ability to of an object to take 

on many forms.The most common use of polymorphism 

             in OOP occur when a parent class reference is used

to refer to a child class object.



Que 4. How many methods in Externalizable interface ?

Ans:-  There are two method in Externalizable interface.You have to implement these
            two methods in order to make your class externalizable. These two methods are
           1. readExternal().
           2. writeExternal().



Que 5. What is Iterator interface ?

Ans:-    The Iterator interface is used to step through the element of a Collection.



Que 6. What are native methods? How do you use them ?

Ans:-    Native methods are methods whose implementation is provided 
             in another programming language  such as C.The main objective of native
             method are to improve th performance of the system.



Que 7. What is HAS-A relationship in Java ?

Ans:-   1. HAS-A Relationship is also knows as composition(or) aggregation.
            2. There is no specific keyword to implement HAS-A relationship but mostly 
                 we can use new operator.
           3. The main advantage of  reusability.




All the MNC Company Interview Questions here  for java Devloper
xpanxion java interview questions for All the java devloper 
xebia gurgaon java interview questions,xerago java interview questions
xavient java interview questions,java interview questions for vyom labs
java interview questions zycus.

Xpanxion All Over the India branch(Company) Questions And Ans. they are locate in anywhere in india
xpanxion (pune coding questions),xpanxion (delhi coding questions),xpanxion (noida coding questions),xpanxion (channai coding questions).


Tuesday, December 17, 2019

What is a method signature in Java? -Learn Java

What is a method signature in Java? -Learn Java


In java, method signature consists of name of the method followed by argument types.

Example:


https://cjavapoint.blogspot.com/
in java return type is not part of the method signature .Compiler will use method signature 
while resolving method calls.

   class Demo
  {
      public void m1(double d){ }
      public void m2(int i)    { }
      public static void main(String args[]){
         Demo d=new Demo();
         d.m1(11.2);
         d.m2(10);
         d.m3();  //CE
    }
  }

CE:cannot find symbol
symbol:method m3(double)
location:class Demo


Within  the same class we cant't take 2 method with the same signature otherwise we will 
get compile time error.

Example:

   public void methodOne() { }
   public int methodOne() { 
    
     return 10;
   }

Output:

Compile time error
methodOne() is already defined in Demo.










             

Monday, December 16, 2019

Aggregation in Java: Definition and Examples -Learn Java

Aggregation in Java: Definition and Examples -Learn Java

Without existing container object if there is a chance of existing contained objects
such type of relationship is called aggregation .
in aggregation objects have weak association.

Example:

Within a department there may be a chance of several professors will work whenever 
we are closing department still there may be a chance of existing department object the
 relationship between department and professor is called aggregation where the objects
 having weak association.

Example:

https://cjavapoint.blogspot.com/

Saturday, December 14, 2019

Composition in Java Example - Learn Java

Composition in Java Example - Learn Java

without existing container object if there is no chance of existing contained object
then the relation between container object and contained object is called composition 
which is a strong association.

Example:

Any university consists of several departments whenever university object destroys automatically 
all the department object will be destroys that is without existing dependent object hence there are associated and this relationship is called composition .



Learn Java online free and learn java programming this is the
best way to learn java. this is best java tutorial.in this tutorial          
all the programs start with hello java,hello world.Enterprise applications         
programming language

HAS-A relationship in Java - Learn java

HAS-A relationship in Java - Learn java

1.HAS-A Relationship is also knows as composition(or) aggregation.
2.There is no specific keyword to implement HAS-A relationship but mostly 
    we can use new operator.
3.The main advantage of  reusability.

Example:-

class Engine
{
 // engine functionality
}
class Car
{
   Engine e=new Engine();
  //------------------------------;
  //------------------------------;
  //------------------------------;
}

NOTE:-

class car has-a engine reference.
The main dis-advantage of has-a relationship increases dependency between the
components and creates maintains problems.


Learn Java online free and learn java programming this is the
best way to learn java. this is best java tutorial.in this tutorial          
all the programs start with hello java,hello world.Enterprise applications         
programming language

Thursday, October 3, 2019

What is “tightly encapsulation” in Java? - Learn Java

What is “tightly encapsulation” in Java? - Learn Java

Encapsulation In Java With Realtime Example

A class is said to be tightly encapsulated
If and only if each and every variable of class declared as private.

And there is  no need to be worry about whether class contains corresponding 
getter and setter methods or not or whether these methods are declare as public 
or not.

Encapsulation In Java With Realtime Example:

Example:1
public class Account
  {
           private double balance;
           public double getBalance()
          {
                return balance;
          }
  }

Which of the following classes are tightly encapsulated

 public class A
 {
    private int x=11;(Valid)
 }
class B extends A
 {
    int y=20;(Invalid)
 }
 class C extends A
{
private int z=40;(Valid)
 }

Note : If the parent class is not tightly  encapsulated then  
child class will  not be tightly encapsulated.

learn java online free and learn java programming this is the
best way to learn java. this is best java tutorial.in this tutorial          
all the programs start with hello java,hello world.Enterprise applications         
programming language

Java multithreading Tutorial with Real-Life-Example(2025)

  Java Multithreading Tutorial with Real-Life Examples (2025) Meta Description: Learn Java Multithreading with real-world examples. Und...