What is the best unknown feature of Java?

Asked by Last Modified  

Follow 1
Answer

Please enter your answer

* The sun.misc.Unsafe API this is a private API in JDK 8 that was shared to be public in JDK 9. this is used in low level programming. the use case is in platform like FX trading where the timing are in nanos and then the over all end to end flow is allowed in micros. People forget how fast java can...
read more
* The sun.misc.Unsafe API this is a private API in JDK 8 that was shared to be public in JDK 9. this is used in low level programming. the use case is in platform like FX trading where the timing are in nanos and then the over all end to end flow is allowed in micros. People forget how fast java can be, its prety close to C++ and if you are not an expert in C++ it can end being faster for you. * how using lambda expressions the code will get optimised, the lambdas may very well be taught as syntactical sugar but in many cases gets optimized by compiler by inlining. see such optimizations by decompiling code you will be surprised. There are many such features which are lesser known rather than "unknown" just digging deeper in topics will make you realise more of them. read less
Comments

Related Questions

public class X { public static void main(String [] args) { X x = new X(); X x2 = m1(x); /* Line 6 */ X x4 = new X(); x2 = x4; /* Line 8 */ doComplexStuff(); } static X m1(X mx) { mx = new X(); return mx; } } After line 8 runs. how many objects are eligible for garbage collection?
Only one. After line 8 the original object referred to by x2 is dereferenced and ready for garbage collection. In m1(), mx ignores the object passed as argument and refers to a new object which is returned.
Profile Photo
Srikanth
Presently is swings and applets are important in java ?
When compared to swing, nowadays SWT is getting popular, where you can built a application like eclipse.
Profile Photo
Mahender
What is Constructor in Java?
A constructor in is a block of code similar to a method that's called when an instance of an object is created.
Profile Photo
Ujwalajagdale
0 0
View Comments8
I want to Learn java. How do I start?
Start with Complete Reference book.
Profile Photo
A

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

Java inheritance example
Answer these questions Answer the above question
Profile Photo

Class and Objects in Java
Class is a template or a blueprint which is used to describe an object. On other hand Object is a reference of a class which follows all the stuff written inside the class. How about taking the whole tour in the following video
Profile Photo

Programing Languages Learning Tricks
You want to learn that new language or library or framework as soon as possible, right? That’s understandable. Fortunately, there are a handful of tips that can help you to better retain all of that...
H

Harshal G.

0 0
View Comments0

Java Advantages
In this video, learn about Java and its advantages. Also, check out the difference between Java and C++, Java development kit, Java Run Time Environment (JRE) with a proper demonstration program for better clarity.
Profile Photo

Facebook Analytics
Assume how the Facebook application will store the millions of customer's record in real-time: facebook = { 'jose': { 'name': 'jose', 'age': 33, 'hobby': , # cricket,football 'mobile': 1111111111, 'email':...
Profile Photo

Recommended Articles

In the domain of Information Technology, there is always a lot to learn and implement. However, some technologies have a relatively higher demand than the rest of the others. So here are some popular IT courses for the present and upcoming future: Cloud Computing Cloud Computing is a computing technique which is used...

Read full article >

Java is the most famous programming language till date. 20 years is a big time for any programming language to survive and gain strength. Java has been proved to be one of the most reliable programming languages for networked computers. source:techcentral.com Java was developed to pertain over the Internet. Over...

Read full article >

Java is the most commonly used popular programming language for the creation of web applications and platform today. Integrated Cloud Applications and Platform Services Oracle says, “Java developers worldwide has over 9 million and runs approximately 3 billion mobile phones”.  Right from its first implication as java 1.0...

Read full article >

Designed in a flexible and user-friendly demeanor, Java is the most commonly used programming language for the creation of web applications and platform. It allows developers to “write once, run anywhere” (WORA). It is general-purpose, a high-level programming language developed by Sun Microsystem. Initially known as an...

Read full article >

Looking for Java Training Classes?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you