Hi friends pl help me out to understand the following questions
Q1
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
method.
Answer : B C D
My doubt is
why not A option is true
Q2
How many String objects are created when we run the following code.
String s1,s2,s3,s4;
s1 = "Hello";s2 = s1; s3 = s2 + "Pal";s4 = s3;
A.1
B.2
C.3
D.4
E.0