object-reference Questions
2
Solved
Beware: I'm not trying to compare if the characters are equals. Because I know how to use the String.equals() method. This question is about String reference
I was studying for the OCA exam when I...
Operant asked 18/5, 2017 at 2:17
5
Solved
What is the best way to determine whether an object reference variable is null?
Is it the following?
MyObject myObjVar = null;
if (myObjVar == null)
{
// do stuff
}
Kino asked 17/8, 2012 at 5:26
5
Solved
My repository has List<Student>, List<Course> and List<Enrolment> where an Enrolment has Enrolment.Student and Enrolment.Course which are references one of the students or courses...
Convoluted asked 8/1, 2010 at 8:13
2
Solved
In Java9, finalizers have been deprecated and new concept of cleaners have been introduced. What was the specific reason for it? Is there any particular scenario or reason where cleaners shou...
Marylou asked 31/1, 2018 at 1:27
2
Solved
I have an Employee object, I'm trying to update a record (i.e., Update / Remove) using a multiple task (Parallel Execution) using single DB Entity Context. But I'm getting the following exception
...
Hemostat asked 6/1, 2017 at 6:10
2
Solved
I have a Public Class "General" in which is a Public Sub "updateDynamics". When I attempt to reference it in the code-behind for a page like so:
updateDynamics(get_prospect.dynamicsID)
I get the...
Liesa asked 19/11, 2012 at 21:22
2
Solved
Section 12.2.5 of the standard says:
A temporary bound to a reference parameter in a function call (5.2.2)
persists until the completion of the full expression containing the
call. A temporary bou...
Pulliam asked 28/6, 2013 at 10:31
1
Solved
I believe AutoMapper is using a cache when it is mapping lists of objects from one type to another. Take a look at the following code:
namespace ConsoleApplication
{
class Program
{
static void...
Tudor asked 22/1, 2013 at 18:42
4
Solved
I have asked about getting unique instance of class from another class recently.
( How to get specific instance of class from another class in Java? )
So, I am trying to make it work:
My Applica...
Crossindex asked 16/8, 2012 at 17:52
2
Solved
I'm curious to know how C# object references are represented in memory at runtime (in the .NET CLR). Some questions that come to mind are:
How much memory does an object reference occupy? Does it...
Perrins asked 29/2, 2012 at 0:20
1
Solved
In MyApp.something.BigObject I have a memory expensive object and I like to do this var theObject = MyApp.something.BigObject;. My question is would that take up double the memory or not?
Imco asked 19/9, 2011 at 6:45
4
Solved
Consider the following code segment:
class Window // Base class for C++ virtual function example
{
public:
virtual void Create() // virtual function for C++ virtual function example
{
cout &l...
Mew asked 24/12, 2010 at 6:35
1
Solved
I come across some MC++ code like this:
__gc class ClassA
{
Puclic:
ClassB GetClassB();
}
__gc class ClassB
{
Public:
int Value;
}
int main()
{
ClassA^ a = gcnew ClassA();
ClassB^ b = a->...
Ehling asked 24/6, 2010 at 13:14
1
© 2022 - 2024 — McMap. All rights reserved.