Search found 47 matches

by sekhar
Tue Jan 22, 2019 12:03 pm
Forum: Java Object Oriented Programming
Topic: Java Encapsulation
Replies: 2
Views: 73

Re: Java Encapsulation

Encapsulation in Java is a mechanism of wrapping the data (variables) and code acting on the data (methods) together as single unit. In encapsulation the variables of a class will be hidden from other classes, and can be accessed only through the methods of their current class, therefore it is also ...
by sekhar
Tue Jan 22, 2019 11:34 am
Forum: Java Object Oriented Programming
Topic: Runtime Polymorphism in Java
Replies: 2
Views: 54

Re: Runtime Polymorphism in Java

polymorphism. There are two types of polymorphism in java: 1) Static Polymorphism also known as compile time polymorphism 2) Dynamic Polymorphism also known as runtime polymorphism 1.Compile time Polymorphism (or Static polymorphism): ===================================================== Polymorphis...
by sekhar
Tue Jan 22, 2019 11:13 am
Forum: Java Object Oriented Programming
Topic: Multiple inheritance not supported in java
Replies: 2
Views: 53

Re: Multiple inheritance not supported in java

Multiple Inheritance is a feature of object oriented concept, where a class can inherit properties of more than one parent class. The problem occurs when there exist methods with same signature in both the super classes and subclass. On calling the method, the compiler cannot determine which class m...
by sekhar
Tue Jan 22, 2019 11:03 am
Forum: Java Object Oriented Programming
Topic: Purpose of an Inner Class in Java
Replies: 1
Views: 52

Re: Purpose of an Inner Class in Java

Inner classes are used for logical grouping of classes. In cases where your class B is used only by class A it’s better to put Class B as an inner class to Class A. This improves encapsulation and readability of the code. We have different ways to implement inner class a) static nested class b) inne...
by sekhar
Tue Jan 22, 2019 10:40 am
Forum: Java Object Oriented Programming
Topic: Inheritance used in Java
Replies: 3
Views: 110

Re: Inheritance used in Java

Java is an Object Oriented Programming Language. Inheritance is one of the most popular concept in Object Oriented Programming. We use Inheritance in Java for following reasons: Encapsulation: If we have some common attributes, then we encapsulate these in a parent class and just give specific attri...
by sekhar
Mon Jan 07, 2019 4:10 am
Forum: Selenium WebDriver
Topic: Types Of Webdriver Methods()
Replies: 4
Views: 63

Re: Types Of Webdriver Methods()

What is the web operations?
by sekhar
Sat Jan 05, 2019 11:35 am
Forum: Java Methods
Topic: Types of Methods
Replies: 1
Views: 77

Types of Methods

Explain and How Many Types of Methods?
by sekhar
Sat Jan 05, 2019 11:30 am
Forum: Java Methods
Topic: Difference between Static and Dynamic Methods
Replies: 2
Views: 98

Re: Difference between Static and Dynamic Methods

Static methods : ============== Static methods are useful if you have only one instance (situation, circumstance) where you're going to use the method, and you don't need multiple copies (objects). For example, if you're writing a method that logs onto one and only one web site, downloads the weathe...
by sekhar
Sat Jan 05, 2019 11:16 am
Forum: Java Methods
Topic: Difference between static and instance method
Replies: 3
Views: 200

Re: Difference between static and instance method

Instance Method: ============== Instance method are methods which require an object of its class to be created before it can be called. To invoke a instance method, we have to create an Object of the class in within which it defined. These methods themselves are stored in Permanent Generation space ...
by sekhar
Sat Jan 05, 2019 11:02 am
Forum: Writing Selenium Test Cases
Topic: IFrame Handling
Replies: 3
Views: 142

Re: IFrame Handling

What is the difference between Frame and iFrame?

Go to advanced search