Tutor profile: Sombuddha C.
Subject: Java Programming
What is the difference between JDK, JVM, and JRE?
Java Development Kit is the core component of Java Environment and provides all the tools, executables and binaries required to compile, debug and execute a Java Program. JVM is the heart of Java programming language. When we run a program, JVM is responsible for converting Byte code to the machine-specific code. JVM is also platform-dependent and provides core java functions like memory management, garbage collection, security, etc. JRE is the implementation of JVM, it provides a platform to execute java programs. JRE consists of JVM and java binaries and other classes to execute any program successfully.
What is the best way to ace GRE Reading comprehensions besides practicing papers and learning words?
The best way to ace GRE Reading comprehension is to develop a taste for active reading. Other than practicing passages from papers you can try reading storybooks or news articles or online blogs. You can make it a practice to write a short gist of what you read summarizing the passage or article.
Subject: Android Programming
Do you understand the difference between a ListVIew and a RecyclerView? Give instances when you would prefer one over the other.
ListView renders all the list items at the same time, that is, as soon as the ListVIew is itself rendered. This takes up a lot of memory if the list is large. However, it is relatively easier to implement. RecyclerView only renders the list items that are visible on the screen. So even if the list has 100 elements and at a time only 5-6 items can fit on the screen, then RecyclerView only renders those 5-6 elements. It keeps destroying older items and rendering new items when we scroll. This way it saves a lot of memory. However, it is more complicated to implement. For example, let's say we have a food ordering app which can have 100s of shops and each shop can ave 40-50 dishes. In such cases, we should prefer RecyclerVIew. However, for the developer contact page (which will hardly have 4-5 contacts), we can use ListView.
needs and Sombuddha will reply soon.