Blog Archives

04: Java primitives & objects – memory consumption interview Q&A

Q1. How much memory space does a primitive type int occupy in Java? A1. 4 bytes. Q2. Java objects get stored in the heap memory space, but how about the primitive variables? A2. It depends. 1) Primitives defined locally would be on the stack.

2) If a primitive is…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Training, 90-Day-Java-JEE-Career-Training, 180-Day-Java-JEE-Career-Training, 365-Day-Java-JEE-Career-Training, 60-Day-Java-JEE-Career-Training and 2-Year-Java-JEE-Career-Training

Evaluate the quality of the contents to see if they will add value to you?

Click Here and check the contents with Try OR look for post titles with ♥

Log In | Register
Posted in Data types, JVM, Low Latency, member-paid

Converting String to Amount and Amount to String

#1. Does Java have a “Money” class? No. This will change in Java 9 with the “Money API”. JSR 354 defines a new Java API for working with Money and Currencies. #2. What are the 2 potential pitfalls in working with money? 1. Rounding and truncating inaccuracies 2. Not properly…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Training, 90-Day-Java-JEE-Career-Training, 180-Day-Java-JEE-Career-Training, 365-Day-Java-JEE-Career-Training, 60-Day-Java-JEE-Career-Training and 2-Year-Java-JEE-Career-Training

Evaluate the quality of the contents to see if they will add value to you?

Click Here and check the contents with Try OR look for post titles with ♥

Log In | Register
Posted in Converting from A to B, Data types, member-paid

06: ♥ Understanding TimeZones with Java 8 examples

What is UTC? which stands for Coordinated Universal Time. The diagram below shows the standard time offsets of different countries. Some places observe daylight saving time (DST) during their respective summer periods. For example, Los Angeles (i.e LA) UTC – 8.0 hours (without DST) & UTC – 7.0 hours (with

Read more ›

Posted in Data types, Java 8

Convert Java Date/Time to String & String back to Date/Time

#1. Why convert a Date to String & a String back to Date (a) Convert a String input from say a file date, so that you can perform operations like 1) Adding 5 days to the date. 2) Comparing a date like before, after, equal, etc. (b) Convert a Date

Read more ›

Posted in Converting from A to B, Data types
Tags:

03: ♥♦ Java autoboxing & unboxing benefits & caveats interview Q&As

Q1. What do you understand by the terms “autoboxing” and “autounboxing” in Java? A1. Java automatically converts a primitive type like “int” into corresponding wrapper object class Integer. This is known as the autoboxing. When it converts a wrapper object class Integer back to its primitive type “int”, it is

Read more ›

Posted in Data types, Understanding Core Java
Tags: ,

05: ♦ Java Date and Time Interview Q&As

Q1. What is wrong with old Java.util.Date & java.util.Calendar/java.sql.* APIs and why should joda-time & Java 8 libraries favored? A1. Old Java.util.Date & java.util.Calendar/java.sql.* -> Joda-Time (Pre Java 8) -> Java 8 Date/Time java.util.Date, java.util.Calendar & java.text.SimpleDateFormat classes had the following shortcomings: 1) Thread Safety as Date and Calendar classes…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Training, 90-Day-Java-JEE-Career-Training, 180-Day-Java-JEE-Career-Training, 365-Day-Java-JEE-Career-Training, 60-Day-Java-JEE-Career-Training and 2-Year-Java-JEE-Career-Training

Evaluate the quality of the contents to see if they will add value to you?

Click Here and check the contents with Try OR look for post titles with ♥

Log In | Register
Posted in Data types, member-paid

01: Java data types interview Q&A

Q1. How would you go about choosing the right data types for your application? A1. Java is what is known as a strongly typed language. This means Java only accepts specific values within specific variables or parameters. Some languages, such as JavaScript, PHP, and Perl are weakly typed languages. 1.…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Training, 90-Day-Java-JEE-Career-Training, 180-Day-Java-JEE-Career-Training, 365-Day-Java-JEE-Career-Training, 60-Day-Java-JEE-Career-Training and 2-Year-Java-JEE-Career-Training

Evaluate the quality of the contents to see if they will add value to you?

Click Here and check the contents with Try OR look for post titles with ♥

Log In | Register
Posted in Data types, member-paid

02: ♦ 10 Java String class interview questions & answers

Java Collection interview questions and answers and Java String class interview questions and answers are must know for any Java developer as these two APIs are the most frequently used in your Java application code. You can’t write any decent Java application without these 2 APIs. Q1. What will be…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Training, 90-Day-Java-JEE-Career-Training, 180-Day-Java-JEE-Career-Training, 365-Day-Java-JEE-Career-Training, 60-Day-Java-JEE-Career-Training and 2-Year-Java-JEE-Career-Training

Evaluate the quality of the contents to see if they will add value to you?

Click Here and check the contents with Try OR look for post titles with ♥

Log In | Register
Posted in Data types, FAQs Core Java, member-paid
Tags: , ,
1180+ members Prepare to succeed? | Reviews | Career PDFs | Self-taught Java developer?

800+ Interview Q&As ♥Free | ♦FAQ (Mouse Hover For Full Text)

open all | close all

200+ Java FAQs – Quick Prep

open all | close all

16 Java Key Areas to be a top-notch

open all | close all

80+ Java Tutorials – Step by step

open all | close all

100+ Java Coding Exercises

open all | close all

How good are your "Career Skills"?

open all | close all