Interview Questions and Answers - Order By Newest Q2251. Can methods without a return type be declared in Java? Is there a difference between void return type and no return type ? 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 was recently asked at 'PegaSystems'.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 Q2253. how is the internal code for the "volatile" implemented ? Core Java
This question was recently asked at 'Symantec'.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  volatile Asked in 1 Companies Q2254. Design database schema for Facebook like application. Database
This question was recently asked at 'Symantec'.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  database design Asked in 1 Companies expert Q2255. How Bitly shortens the URL ? Web
This question was recently asked at 'Symantec'.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  web application   url Asked in 1 Companies   rare Q2256. Write Java code that would cause deadlock ? Core Java
Ans. https://howtodoinjava.com/java/multi-threading/writing-a-deadlock-and-resolving-in-java/ Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  multithreading  threads  deadlock Asked in 1 Companies intermediate Q2257. How would you design a Thread Pool ? Design
Ans. By using Executor Framework , we can create Thread pool Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  Thread Pool Asked in 1 Companies expert Q2258. Suppose you have 8 balls, one of them is either have more/less weight, In how many least possible iterations would you find that ball? Design
This question was recently asked at 'Symantec'.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  puzzle  design Asked in 1 Companies Q2259. is Java top down programming language or bottom up programming language? Core Java
Ans. bottom up programming language Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Ans. Hashing is a technique to calculate the hash code for any object Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q2261. Draw uml for singleton pattern. Design
This question was recently asked at 'deutche bank'.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  design pattern   singleton Asked in 1 Companies Q2262. Can you name few Java packages which you frequently used ? Core Java
This question was recently asked at 'Symantec'.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 Q2263. Can you tell something about Web security ? Web
This question was recently asked at 'Symantec'.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  web security Asked in 1 Companies Q2264. If we have width of an html element as 100px and a border of 10 px. What will be the effective width of the element ? Will the border start after 100 px or after 90 px ? Html
This question was recently asked at 'Symantec'.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 Q2265. Can you create html and css for a rectangular shape button with width 10px. CSS
This question was recently asked at 'Symantec'.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 Q2266. What is the difference between Java OR operator and Java script OR operator ? JavaScript
This question was recently asked at 'Symantec'.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 Q2267. What are the advantages of using cascade style sheets or css ? CSS
Ans. We can enforce consistent UI and can have single point of change for UI components.' Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q2268. How do you debug Javascript code ? JavaScript
Ans. Possible Answer - I use either Firebug or Chrome Developer tool. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q2269. Have you ever worked with Firebug ? Browser
Ans. Possible Answer - Yes, for debugging Javascript issues and fixing CSS and Html. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q2270. How can we assign common styling attributes to html tags and how can we do that across different tag types ? CSS
Ans. Using class selector. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q2271. How can we align a particular html element to the center using css ? CSS
Ans. By using attribute align:center Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  css  html Asked in 1 Companies Q2272. What is the doctype declaration at the top of html page ? Html
Ans. It is an instruction to the web browser about what version of HTML the page is written in, which specifies the rules for the markup language, so that the browsers render the content correctly. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  doctype  dom Asked in 1 Companies Q2273. In which way are you using dependency injection in Spring ? Annotation , Config or Class ? Spring
Ans. Possible Answer - We are using config file. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  Dependency injection Asked in 1 Companies Q2274. How does encoding affect using Reader / writer classes or Stream classes in Java ? Core Java
Ans. Which group of bytes represent which character is defined by character encoding. So when reading character by character from a stream of bytes using Reader, specifying character encoding becomes significant as the same group of bytes can represent different character in different character encoding(Eg UTF-8 and UTF-16 etc.) Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  File io  File handling  Reader  Writer  Stream Asked in 1 Companies Q2275. How many bytes a character takes with UTF-8 encoding ? Encoding
Ans. it takes 1 to 4 bytes Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  utf  unicode  utf-8 Asked in 1 Companies Q2276. How executor service is better than using primitive Threading mechanism using Thread class or runnable Interface ? Core Java
This question was recently asked at 'Symantec'.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  multithreading  threads Asked in 1 Companies Q2277. Suppose we make an api call using multithreading, How would you design to make sure that we have received response for all threads before exiting the main thread ? Design
Ans. We can use HashMap for tracking response status for all threads. We can wait every n second by using Thread.sleep and exit the main thread only once we have received response for all threads. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  threads  multithreading Asked in 1 Companies basic   frequent Q2278. What is the difference between TreeSet and TreeMap ? Core Java
Ans. TreeSet contains only values as elements whereas TreeMap contains Key value pairs. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  reeMap  TreeSet  Collections  sorted collection Asked in 1 Companies   rare Q2279. Which of the following is insertion heavy - HashSet or TreeSet ? Core Java
Ans. TreeSet as it needs elements in a particular order Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q2280. Difference between static and dynamic binding ? Design
Ans. Static binding happens at the compile time whereas dynamic binding happens at runtime. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  static vs dynamic binding  overriding Asked in 1 Companies basic   frequent