These were the questions they asked in the campus interview – 1st interview ————- 1) Find the least common ancestor in a binary tree, given any two nodes of the tree. 2)* Write code to remove duplicates in a sorted array
This is a common fishing expedition to see what the industry grapevine may be saying about the company. But it’s also a trap because as an outsider, you never want to be the bearer of unflattering news or gossip about the firm. It can only hurt your chances and sidetrack the interviewer from getting [...]
1. WHAT DO MEAN BY CDFS FORMATE?
CDFS stands for Compact Disk Filing System and is the normal file format used for CD-ROM disks. It can also be used for DVD-ROM disks
2. What is a windows defender?
Windows Defender is software that helps protect your computer against pop-ups, slow performance, and security threats caused by spyware and [...]
As everybody knows Infosys is a leading IT company in the field of software development and engineering through a network of development centers in Asia, Europe, and North America.So candidates who want to get placed in the World IT giant must prepare themselves for their placement papers and Interview round questions.So i am providing you [...]
Believe it or not, this is a killer question because so many candidates are unprepared for it. If you stammer or adlib you’ve blown it.
How are Observer and Observable used?
Objects that subclass the Observable class maintain a list of observers. When an Observable object is updated it invokes the update() method of each of its observers to notify the observers that it has changed state. The Observer interface is implemented by objects that observe Observable objects.
Q:
Does Java provide any construct to find out the size of an object?
A:
No there is not sizeof operator in Java. So there is not direct way to determine the size of an object directly in Java.
Q:
Are the imports checked for validity at compile time? e.g. will the code containing an import such as java.lang.ABCD compile?
A:
Yes the imports are checked for the semantic validity at compile time. The code containing above line of import will not compile. It will throw an error saying,can not resolve symbol [...]
Q:
What if the main method is declared as private?
A:
The program compiles properly but at runtime it will give "Main method not public." message.
Q:
What if the static modifier is removed from the signature of the main method?
A:
Program compiles. But at runtime throws an error "NoSuchMethodError".
Here we give some interview Question which is important for a good interview and these question give a basic concept for learning Java. Java is a simple , secure ,robust and independent language. This language is use for developing software And website. Java has many version like J2SE ,J2EE & J2ME
Q:
What is the difference [...]