- What are OOPS concepts?
- Provide real time examples for each and every OOPS concepts?
- What is inheritance? Types of inheritance? Does multiple inheritance allowed in java. If not, why?
- Does an interface implements or extends another interface
- Can multiple inheritances support in Interface?
- Examples of Abstract and Interface used in selenium project?
- Can we extend multiple interfaces
- What are abstract classes and methods in Java?
- What is an Abstract Class? Write an example code?
- diff between abstract and interface
- Can we use private and protect access modified inside a Interface?
- What is polymorphism? How we can achieve it?
- Explain run time polymorphism and compile time polymorphism with examples?
- Difference between method overloading and method over riding?
- Can we achieve method overloading when two methods have only difference in return type.
- Method overloading and overriding examples in Selenium project?
- What is encapsulation?
- What is IS-A and HAS-A relation in java With examples?
- Explain runtime polymorphism and compile time with examples?
- Can we overload main method?
- Can final methods be overloaded?
- Can static methods be overloaded?
- Can static methods be overridden?
- Class a { } class b extends a { } A a= new A(); B b=new B(); A a= new B(); B a=new A(); Which is valid and invalid?
- Suppose i have 100 methds in my interface i want to implement only 2 methods in my class.. how to do?
- Class A has 100 funcations and class B wants to use 20 functions, how to use without inheritance?
- Create a custom class which contains an interface in it and custom class should be responsible for performing operations. Which type of interface will you use to create such a custom class?
- What is a Constructor? Types of Constructor?
- When will you use this and super in a constructor?
- What is the purpose of using ‘this’ keyword in Java?
- Can a constructor be private?
- Can you make the constructor of a class static?
- If you want to call a constructor from parent class, what will you do?
- What is the purpose of using Constructors in Java?
- How Constructors are different from Methods in Java?
- Is Overriding applicable for Constructors in Java?
- what is static block in java
- What is instance block at class level and method level?
- What are static and non static methods and why will you create static and non static methods?
- What are static variables and methods?
- diff between static and non- static
- What is final and super keyword? Difference between them?
- Can we execute a class without a main method?
- if static is for memory management then why to use non static?
- What is the difference between static and instance variable in Java?
- What is the difference between static and non-static methods in Java?
- Explain the difference between static and instance methods in Java?
- Can final/Static method be overloaded?
- Can final/Static methods be overridden?
Java Questions Part2 - OOPS Concept, Constructors, Static keyword
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment