Java - Online Test - Spring - javasearch.buggybread.com


Share

Search Java Test Questions


 223 test questions in repository.




Java - Test Questions on 'spring' - 12 questions found


Which class provides the enumerated value for Bean Scope ?Spring
BeanDefinition
ConfigurableBeanFactory
WebApplicationContext
All of the Above

  spring  spring beans  spring bean scope

Which of the following Interface needs to be implemented by any object that wishes to be notified of the ApplicationContext that it runs in ?Spring
ApplicationContextAware
ApplicationContextUtils
ApplicationContext
Aware

  spring  applicationcontext  application context  ApplicationContextAware

In Spring , Which class handles the Http requests for RESTful web services ?Spring
Service
Model
Controller
Util

  spring frmaework   spring mvc    rest   webservices

Which of following is not Spring MVC annotation ?Spring
@Autowired
@Controller
@JoinColumn
@Transactional

  spring annotations

Spring MVC is a .. Spring
Model Framework
View Framework
GUI Framework
Web Framework

  Spring  Frameworks

Which of the following statement is not true ?Core Java
x==y means they are pointing to the same object
x==y means that they hold same information
x.equals(y) means they are pointing to the same object
x.equals(y) means that they hold same information

  

When String literals are compared using ==, they always returns true if the string values are same because .. Core Java
of overridden compareTo method
of overridden compare method
of String Pool
== means that the object contents are equal

  

What will be the output of following ?

String str1 = new String("String1");
String str2 = new String("String1");
System.out.print(str1 == str2);
System.out.print(str1.equals(str2));
str1 = str2;
System.out.print(str1 == str2);
Core Java
falsetruetrue
truetruetrue
truetruefalse
falsetruefalse

  equals  object equality

What will be the output of following code ?

String str1 = "String1";
String str2 = "String1";
System.out.print(str1 == str2);
System.out.print(str1.equals(str2));
str1 = str2;
System.out.print(str1 == str2);
Core Java
falsetruetrue
falsefalsetrue
truetruetrue
falsefalsefalse

  equals  object equality  string pool

What will be the output of following code ?

String str1 = "String1";
String str2 = "String2";
str1.concat("String3");
System.out.print(str1);
System.out.print(str2);
Core Java
String1String2
String1String3String3
String1String3String1String3
String1String1

  

What will be the output of following code ?

String str1 = "String1";
String str2 = "String2";
str1=str1.concat("String3");
System.out.print(str1);
System.out.print(str2);
Core Java
String1String2
String1String3String2
String1String2String3
String1Stringg3String1

  

Which of following class types in MVC holds Business logic ?Java EE
Model
View
Controller
Accessor

  mvc







comments powered by Disqus