Java Interview Question and Answer Explain Static,Interface,Abstract class
1,219 views · Published 14 October 2013 · 2:54 · Indexed 23 September 2026
Channel: Interview DOT · 2013 · Science & Technology
Click here - https://www.youtube.com/channel/UCd0U_xlQxdZynq09knDszXA?sub_confirmation=1 to get notifications. 1. What does the static keyword mean, and where can it be used ? "static" can be used in four ways: static variables are shared by the entire class, not a specific instance (unlike normal member variables) static methods are also shared by the entire class static classes are inner classes that aren't tied to their enclosing classes static can be used around a block of code in a class to specify code that runs when the virtual machine is first started up, before instances of the class are created. 2. What are the differences between interfaces, abstract classes, classes, and instances ? Interfaces are essentially a list of methods that implementations must possess, but have no code or member variables Abstract classes cannot be instantiated, but can contain variables, implemented methods, and unimplemented methods Classes contain variables and implemented methods only, and can be instantiated Instances (or objects) are specific examples of a particular class.
More from this channel
-
2:42
what are different access modifiers core java interview questions and answers
-
1:04
Top Core Java Interview Question and Answer 9
-
1:41
What happens if a java thread throws nullpointer exception interview
-
5:16
How many java static initializer we can have how it will be executed job interview
-
2:36
how many objects are created in java string str = new Stringabc java interview
-
1:44
What are the features of spring framework interviewdot job portal
-
1:55
What is multithreading wait notify java interview question interviewdot
-
2:12
What is MVC interview question interviewdot job portal