Getter and Setter method in Java | Interview Question | Automation Testing most asked questions SDET

preview_player
Показать описание

Please fill out the above form to join any course of mine with a discount
You can also call us at +91 8009900785

Join this channel to get access to the perks:
Some important java questions for Interviews:
Java Interview Question
1 Explain what happens in complication and interpretation
2 How java internally works
3 how to calculate the range of each datatype?
4 Can I have a size of datatype in bits and bytes? True or false?
5 What is the use of the super keyword?
6 Why do you use try and catch?
7 What is the default value of the boolean data type in the global variable?
8 Explain what is public static void main?
9 Explain method overloading?
10 Explain method overriding?
11 What ae the rules of method overriding ?
12 can you override static method?
13 Which company own java?
14 Why java is called as platform specific?
15 What are literals?
16 What are the types of tokens in java?
17 can you override the constructor?
18 name some Java Keywords?
19 In case of multiple if block statements how many maximum if blocks may get printed?
20 What are local and global variables?
21 Where do we use the final keyword?
22 Name some string functions?
23 Can you overload static method?
24 what is the difference between static and nonstatic
25 Explain JVM memory?
26 Explain SIB and IIB?
27 What is method overloading?
28 What is method overriding?
29 Can you overload non static method?
30 Can you overload the constructor?
31 Does the queue allow duplicate value?
32 Why do you use throw and throws
33 What are the types of inheritance?
34 For each try it is required to have catch block?
35 What is Abstract class?
36 Why multiple inheritance is not possible ?
37 What is interface?
38 Can you even overload the main method?
39 What is type casting? and its types?
40 What are the disadvantages of array?
41 What is super calling statement ?
42 can we do downcasting only implicitly?
43 What are constructors?
44 Can we do narrowing by both implicitly and explicitly?
45 Can a supercalling statement be parametrized and non-parametrized?
46 Can a constructor be parametrized and non-parametrized?
47 Why we go for collections?
48 What is constructor overloading?
49 What are this keyword and this calling statement?
50 What is the order of execution between SIB, IIb,main method and constructor
51 What is inheritance?
52 Does Constructo have the return type?
53 Can we have multiple catch block for a single try block
54 Why we need a scanner class?
55 Name some exceptions that you have seen?

Like, share and subscribe to the channel.
API Testing Playlist

Core Java Playlist

Selenium Playlist

Manual testing Playlist

Watch my other videos too,
Inheritance in Java video

Single level inheritance video

I work in the IT industry as a Senior Software QA Engineer in Bangalore, India and I have worked on mobile applications, web applications, and API testing.
The main reason behind this channel is to educate people about software testing so that it will help them to choose the right career and also to prepare for their interviews.

Adding my blog link

Adding my personal mail Id:

Adding my Quora profile link here:

Adding my Twitter account here,
or
Facebook Page:

Join us on Telegram today,
SoftwaretestingbyMKT
For the latest update on software jobs and to discuss each and everything about Software Testing also get an opportunity to get on an audio/video call with me directly to you.
I make videos on daily basics and also help student all over the world for FREE. If my videos are helpful in anyway help "SoftwaretestingbyMKT" reach billions by supporting
OR
Рекомендации по теме
Комментарии
Автор

We get it from encapsulation, the getter method is used to get the value of private members and setter method is used to set the data of private members

aditya_kittu
Автор

Getter and setter methods are the topic from Encapsulation

sravschinna
Автор

Encapsulation. They help in achieving data binding i.e., not exposing the variables of the class (by privatising them) and accessing them strictly via these methods for other classes to use

srivignesh
Автор

Hiding the data binding the method to hide the internal implementation, To achive getters and setter methods internally

nagavenigowda
Автор

Getters and setters methods are in encapsulation in java

b.mallikarjunamalli
Автор

Getter and setter are used in Encapsulation

alizaimam
Автор

I will say just for OOP. Because to implement a get or set method you just don't need an abstract class. Any class can implement a get or set method as long as it has field or fields. Get and set are considered as special methods for returning and updating field values.

Gabriel-xqtn
Автор

Encapsulation…. Binding method with its properties

survivorinsan
Автор

Getter and setter methods are the Topic of Encapsulation

rockycreation
Автор

By using getter and setter method we have to access the data which is in private of the class itself

carefulcook
Автор

It is used for access private variables outsides the class

sushmakshirsagar
Автор

Getter and setter methods are the topics from 'Encapsulation' in java

Itsme_Saku
Автор

Getter and setter are used in "Encapsulation"..

priyankachitte
Автор

Encapsulation where we make private data member and public classses to use getter and setter

Decoding
Автор

Abstraction
Does an abstract class have fields?
An abstract class has an abstract.
An abstract class cannot instantiate an object. Hiding unnecessary data from the clients code ( encapsulation).
method without a body. Meaning the implementation is for the child class.
Get and set method is a general concept for returning and updating fields value in OOP of a class. Either a simple class, inheritance, polymorphism, abstraction etc.

Gabriel-xqtn
Автор

Getter and Sette are two method from Incapsulation

deepakkamble
welcome to shbcf.ru