Hi friends pl help me out to understand the following questions
Which of the follwing is true about static modifier.
A.static can be applied to : instance variables, methods,
code Segments and classes.
B.a static method cannot be overridden.
C.inner classes can be both static & private.
D.a static reference cannot be made through non static
method or code block.
E.abstract & static both can be applied together to a
Answer : B C D
My doubt is
why not A option is true
How many String objects are created when we run the following code.
s1 = "Hello";s2 = s1; s3 = s2 + "Pal";s4 = s3;