Sapient Interview Questions

Answer Posted / manveer

Answer of Question 16:

Compile time error : The method add(int, Object) in the type List is not applicable for the arguments (String, String).

Is This Answer Correct ?    25 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is java gui dead?

653


What spring is in related to j2ee?

709


What are the components of J2EE application?

720


What is cascade delete?

691


Which framework is best for java?

660


What is create method?

740


What are the main components of a class in java?

648


Why is java more secure?

647


What is a gui in java?

623


Difference between load and get method?

708


What is the build file?

674


What will happen when you compile and run the following code?

707


Is java a high level language?

688


What is javac written?

667


I am newbie in J2EE & looking for strong basic behind each concept as, Why do we use private access specifier before each variable of type property bcoz ultimately to access it outside the class we use public method as getter & setter ? If we use getter & setter to access it outside the class so better we make variable as public so that it is easily available outside of the class... Please guide me why do we use as private ????

5442