Interview Questions and Answers - Order By Rating Q781. How can you verify if there were interactions with a static method using PowerMock ? PowerMock
Ans. We can use PowerMockito.verifyStatic for this purpose
PowerMockito.verifyStatic(VerificationModeFactory.times(1));
<Class_Name>.<static_method_name>; Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  mocking static methods Q782. Have you ever used PowerMock ? If yes , which mocking framework you have used it with ? PowerMock
Ans. Yes, I have used PowerMockito with Mockito. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  Mockito Q783. Explain hibernate associations. Hibernate
This question was recently asked at 'Ray Business Technologies'.This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q784. Why is Java platform independent ? Core Java
Ans. Platform independent language means once compiled you can execute the program on any platform (OS). Java is platform independent. Because the Java compiler converts the source code to bytecode, which is Intermediate Language. Bytecode can be executed on any platform (OS) using JVM( Java Virtual Machine). Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Ans. DDOS is denial of service attack in which the hacker seeks to make a machine or resource unavailable to its expected users by disrupting services. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  ddos  cyber security Q786. What are the advantages of going serverless against reserved servers ? Server
Ans. Quick Turnaround Time and Quick Time to Market
No Worry about the infrastructure , low maintenance
Cost only for use , not for reservation.
Multiple small applications instead of one big. Results in better uptime and mainetnability. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  serverless  server vs serverless Q787. What is the difference between the 'A' and "A" in Java ? Core Java
Ans. 'A' is a character whereas "A" is a String. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q788. What is the difference between try-catch and @ExceptionHandler in Java/Spring Boot? Spring Boot
Ans. ExceptionHandler is Used to handle at Method level Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  @ExceptionHandler Q789. Which Java libraries are most useful for your work as a Java developer? General
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q790. What are the main limitations of Java as programming language? General
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  C++ vs Java Q792. Does Hashtable in Java use stack operation ? Core Java
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q793. Which Technology/Programming Language will Lead Future? General
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q795. How you can check Object is created or not in case of Singleton using Object class method ? Design
Ans. Reflections-- setAccesible--avoid using enumns Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q796. Differences between class not found exception and noclassdef found error ? Core Java
Ans. ClassNotFoundException is an exception that occurs when we try to load a class at run time using Class.forName() or loadClass() methods and mentioned classes are not found in the classpath.
NoClassDefFoundError is an error that occurs when a particular class is present at compile time, but was missing at run time. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  exception handling  ClassNotFoundException  NoClassDefFoundError Asked in 1 Companies Ans. Yes I did it for an execution role of a Lambda function to give it write access on S3 bucket. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  aws security  aws iam  amazon iamAns. We can schedule that through CloudWatch. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  lambda function  aws lambda  aws serverless computing  amazon cloud serverless computing  amazon lambda function  aws cloudwatch  amazon cloudwatch Q799. Have you ever heard of the term "dry run" ? What does it mean ? Testing
Ans. It means that the run is just for testing purpose. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  dry run Q800. Have you ever scrapped any content from a web page using any of the web scrapping library ?
Ans. Yes, I have used HTMLUnit and crawler4j for doing so. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q801. Have you ever worked on a project that involved reading RSS Feeds ? What framework / library did you use ?
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  Ans. We can get the object and then can set CannedAcl property as "PublicRead" Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  aws s3  aws storage  amazon cloud storage  amazon s3 This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  aws s3  aws storage  amazon cloud storage  amazon s3 Q804. What would you do if you see an error thrown by a lambda function as "Access Denied" while doing something with S3 ? Amazon Web Services (AWS)
Ans. Just like people , AWS resources too have execution roles or permissions. Seems like in such a situation Lambda function may not have sufficient privileges to perform operations on S3. For example - The execution role of Lambda may just have read permissions on S3 and we may be trying to perform PutObject operation. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  aws s3  aws storage  amazon cloud storage  amazon s3  aws lambda  aws serverless computing  amazon cloud serverless computing  amazon lambda Q805. What is a component, service, directive and pipe ? Angular Js
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q806. Do we need to send the payload in the reducer ? NgRx
Ans. No It's optional. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q807. What is the flow or steps performed within the Reducer method ? NgRx
Ans. Respond to the Action Type
Access the Pay load
Compose a New State
Respond a new state Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q808. What is state management ? NgRx
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q809. Difference between reducer and meta reducers ? NgRx
Ans. A Meta Reducer is a higher order reducer or function ithat may receive a function as parameter or even return a function. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q810. Difference between StoreModule.forRoot() and StoreModule.forFeature() ? NgRx
Ans. forFeature is used for lazily registering reducers with the module. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  ngrx   angular   angular ngrx integration  ngrx store