Interview Questions and Answers for 'Myntra' - 13 question(s) found - Order By Newest Q1. Can you write a "Hello World" program without using any ";" within it? Core Java
Ans. Yes, That is possible
class A {
public static void main(String args[]){
if(System.out.printf("Hello World")==null){}
}
} Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  Hello World  Hello world without ; Asked in 2 Companies   rare Q2. Design a Data Structure for a full text Search ? Design
This question was recently asked at 'Myntra'.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  Full Text Search  Data Structure Asked in 1 Companies expert This question was recently asked at 'Myntra,Compro 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 2 Companies Ans. HTTP or Hypertext Transfer Protocol is internet protocol for tranmission of hypertext ( text with meta data ) over internet. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  j2ee   http   internet  fidelity Asked in 2 Companies basic   frequent Must know at all levels. Among Top 10 frequently asked questions in Java. Very frequently asked to fresh graduates or less experienced professionals. Ans. Its a facility for code reuse and independent extension wherein a derived class inherits the properties of parent class. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  inheritance  object oriented programming (oops)  oops concepts  oops concepts  java concepts  code reuse  code re-use   classes  derived classes Asked in 14 Companies basic   frequent Frequently asked Design Pattern interview question. Q6. What is a prototype design pattern ? Design
Ans. The prototype pattern is a creational design pattern. It is used when the type of objects to create is determined by a prototypical instance, which is cloned to produce new objects. Prototype is used when we need duplicate copies of objects. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  design pattern  prototype design pattern  cloning Asked in 11 Companies intermediate Ans. A Web service is a service offered by one system to another, for communication over web through http. XML are JSON are usually used for sending across information from one system to another. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  web service Asked in 2 Companies basic   frequent Q8. Write Delegate function of JQuery ? JQuery
Ans. http://www.w3schools.com/jquery/event_delegate.asp Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q9. What is the difference between http and https ? Java EE
Ans. https encrypts the data using SSL whereas http sends it as plain text, So https is secure protocol whereas http is not.
Moreover https connects on port 443, while HTTP is on port 80 Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  http  https  web protocols Asked in 1 Companies   basic Q10. Implement an LRU Cache ? Design
Ans. https://www.programcreek.com/2013/03/leetcode-lru-cache-java/ Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q11. Flatten a Binary Tree to Linked List Algorithm
Ans. https://www.geeksforgeeks.org/flatten-a-binary-tree-into-linked-list/ Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q12. How to delete duplicate elements in a table ? Database
Ans. DELETE FROM TABLE WHERE ROW_NUM NOT IN ( SELECT MAX(ROW_ID) FROM TABLE GROUP BY DUPLICATE_FIELD ) Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 3 Companies Q13. Write a Program to print permutations of a String. Core Java
Ans. public static Stream permutations(String str) {
if (str.isEmpty()) {
return Stream.of("");
}
return IntStream.range(0, str.length()).boxed()
.flatMap(i -> permutations(str.substring(0, i) str.substring(i 1)).map(t -> str.charAt(i) t));
} Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 2 Companies