How do u provide security in java
Answers were Sorted based on User's Feedback
Answer / guest
elimination of pointer avoids programsto gain access to
memory location without proper authorization..
| Is This Answer Correct ? | 6 Yes | 1 No |
Answer / bhuwan chandra
As the object in Java has properties and behaviour and they
are encapsulated together, no other class can gain access
of the data unless the class is defined as public.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / shreya tanavade
security can be achieved by making the members of the class private..
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain what pure virtual function is?
Is set ordered in java?
Explain the difference between a Thread and a Process.
What about anonymous inner classes in java?
What are scalar data types?
What is static keyword in java?
What is a text string?
What are nested classes in java?
interface X{ void m1(); void m2(); } class Child2 extends Object implements X { public void m1(){ System.out.println("Child2 M1"); } public void m2(){ System.out.println("Child2 M2"); } } public class ParentChildInfterfaceDemo { public static void main(String[] args){ X x = new Child2(); X x1 = new Child2(); x.m1(); x.m2(); x.equals(x1); } } Will the above code work? If yes? Can you please explain why the code x.equals(x1) will work as the equals method is called on interface reference vaiable?
How many arguments can a method have java?
what is the volatile modifier for? : Java thread
how to know the total memory occupied by the objects in the ArrayList(Array list may contain duplicate objects)