Interview Questions and Answers - Order By Newest Q2461. 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   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 s3Ans. 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 s3Ans. 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 cloudwatchAns. 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 iam Q2466. 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 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   Q2468. 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   Q2469. 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   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 Q2471. 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   Q2472. 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   Q2473. 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 Q2474. 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   Q2475. 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 Q2476. 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 Q2477. 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 Q2478. What does the following code
MockitoAnnotations.initMocks(this); Mockito
Ans. Initializes objects annotated with Mockito annotations Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  mocking  java mocking frameworks  Mockito Q2479. What is doCallRealMethod() method used for ? PowerMock
Ans. When we Mock an object and then make a reference to any method using mocked object reference , java never makes a call to that method and looks for mocked value to be returned or null if none specified. But If we want that to be overridden and want java to make actual method call upon using mocked object reference, this method can be used. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  junit  mocking  java unit testing  Mockito Q2480. What is @EnableSptringMVC ? Spring
This question was recently asked at 'Tata Consultancy (TCS)'.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 Q2481. What is the Main Advantage of the native Key Word? 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  native keyword 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  strictfp Q2483. Explain briefly about Queue Interface ? 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  queue Q2484. How do you convert List to Array ? 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   Q2485. Can a double value be cast to a byte ? 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  Ans. Work with two pointers on the linked list - a slow pointer (increments by one node) and a fast pointer (increments by two nodes). If both of these pointers meet at the same node, then there is a cycle in the linked list. Otherwise, no cycle. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  linkedlist Asked in 1 Companies Q2487. Difference between indexing and partioning Database
Ans. Creating an index creates a separate table. ... Indexes are used to speed the search of data within tables. Partitions provide segregation of the data at the hdfs level, creating sub-directories for each partition. Partitioning allows the number of files read and amount of data searched in a query to be limited Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  indexing  partitioning Asked in 3 Companies Ans. When you declare a member/variable as volatile, you are forcing threads to read values from main memory instead of thread memory.
When you declare as atomic, the read and update/write operations are performed as a single unit. A lock is acquired during atomic operation. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 2 Companies Q2489. How many read and write operations are provided at the same time by ConcurrentHashMaps ? Core Java
Ans. ConcurrentHashMaps provide unlimited read operation fro multi threaded environment. For write operation only one thread can change value for particular segment of map. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  ConcurrentHashMap Asked in 1 Companies Q2490. in the following class:
class A {
void methoda(Object o) {
Sysout("Object");
}
void methoda(String s) {
Sysout("String");
}
public static void main(String []args) {
A a = new A();
a.methoda(null);
}
}
what will be printed? Core Java
Ans. String Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  Code  Coding  method overloading Asked in 1 Companies