473,473 Members | 1,483 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How Java Handles Generic Types in internally.

16 New Member
I want to Know how java handles generics internally.
it handle by JAVA COMPILER or at Run Time By JVM...
Mar 21 '14 #1
2 1555
chaarmann
785 Recognized Expert Contributor
It is handles by the Java compiler.
Mar 27 '14 #2
Nepomuk
3,112 Recognized Expert Specialist
If you want to know more about how the java compiler works with Generics, you'll probably want to learn about Type Erasure too.
Mar 28 '14 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Steven Cummings | last post by:
Hello, I've scoured this usenet group and didn't find anything specific to my problem, so hopefully this won't be a repeated question. I'm all but certain it's not. I would like to *declare*...
1
by: Ralf Propach | last post by:
Hi, in C# I can write Type listType = typeof(System.Collections.Generic.List<>); What is the equivalent in C++? I get compiler errors for all of the following: Type listType =...
1
by: Scott Walters | last post by:
What I want to do is this... public class c1 <T1, T2> where T1 : new() { private T1 at1; private T2 at2; public c1() { at1 = new T1();
1
by: conchur | last post by:
Is there an elegant way to have a class utilise an inherited method to return a Typed Collection of itself? Example: class MyList<T> : List<T> where T : MyRoot { Add... Remove... }
3
by: Samuel R. Neff | last post by:
Is there any way to declare a static variable within a generic type definition and have that variable be shared across all constructed generic types? For example, how can I modify this code: ...
3
by: muler | last post by:
Hi, " Generic types may not be "overloaded"; that is, the identifier of a generic type must be uniquely named within a scope in the same way as ordinary types. class C {} class C<V{} ...
1
by: Geky | last post by:
Do you know how is possible to get the handle from a java app using c + +? I can see that is possible to get the handle of a main window of a java app but I can't get the handle of any button or...
6
by: Jon | last post by:
Hi, When I try to compile the following generic class, the compiler gives me many errors "Cannot conver type '...' to '...'" on the lines indicated. Besides, the C# compiler gives me errors even...
0
by: SimonDotException | last post by:
I've written an abstract base type which uses generics to provide XML serialization and deserialization methods for use by its derived types, but I'm seemingly unable to write it in a way which...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.