Core Java Interview Questions
Questions Answers Views Company eMail

wht is mean by dirty read?

1 7792

what is the difference between Java Command Line and C command Line?

2 8388

In Inheritence concept, i have a static method in super class and i am inheriting that class to one sub class.in that case the static method is inherited to sub class or not????

Accenture,

12 13854

Q1.A. Write note on “The class path Environment Variable”? B. Which are different kinds of source code? Q2.A. How to create an interface? B. Why convert an applet to an application? Q3.A. How to use Media tracker Class. B. How to use string tokenizer class. Q4 A. Explain the overview of UDP messaging. B. Difference between SQL Exception class and SQL Warning class. Q5. A. How to create com object in Java? B. Write short notes on “The properties class” Q6. A. When object is created and destroyed? B. Explain the JDB in depth & command line. C. Write short notes on Web Sites.

iGate, Seed Infotech,

2 7403

what are the oops concept in java explain with real time examples

Accenture, Bosch, Consummate Technologies, CTS, Current Technologies, iNautix, Infosys, Kekran Mekran, QA InfoTech, RTRT, SofTech, Tech Mahindra, Thorogood, Timios, Wipro,

24 192394

what is difference between Exception and Error?

36 85076

what is difference between colection and collections?

Amdocs, IBM, Infosys, Ipog Software, Polaris, Tech Mahindra,

25 65287

Why we can not force Garbage Collection?

7 13102

I have a class which is abstract which contains only the abstract methods. This is similar to an interface. Then, if i have given a choice to choose one of them. Which one i have to choose and why?

4 5897

How multipleInheritance is possible in java?

Satyam,

18 18414

explain me with a code snippet about the generation and handling of null point exceptions.

1 3704

We have two methods to create methods the threads. 1. Implementing runnable interface 2. Extending to thread class and overriding run method. Among these two which one is better and why? Please explain me in detail.

2 5387

When we can access the static data member without creating the object what is the need of the object in java.

Airhub, ssinformatics,

5 7624

whst is encapsulation?when u encpsulate actually while devoloping code?

Amdocs, MGL,

7 7614

what is the messsage u r going to get from an objectoriented programing?

MGL,

1599


Post New Core Java Questions

Un-Answered Questions { Core Java }

what is method reference in java 8?

548


How big is a gigabyte?

607


Explain about core java?

614


What is the default value of an object reference declared as an instance variable?

527


What is methods in java?

504






Where will it be used?

1496


When do I need to use reflection feature in java?

619


How do you do descending order in java?

515


3.2 Consider the following class: public class Point { protected int x, y; public Point(int xx, int yy) { x = xx; y = yy; } public Point() { this(0, 0); } public int getx() { return x; } public int gety() { return y; } public String toString() { return "("+x+", "+y+")"; } } Say you wanted to define a rectangle class that stored its top left corner and its height and width as fields. 3.2.1 Why would it be wrong to make Rectangle inherit from Point (where in fact it would inherit the x and y coordinates for its top left corner and you could just add the height and width as additional fields)? (1) 8 Now consider the following skeleton of the Rectangle class: public class Rectangle { private Point topLeft; private int height, width; public Rectangle(Point tl, int h, int w) { topLeft = tl; height = h; width = w; } public Rectangle() { this(new Point(), 0, 0); } // methods come here } 3.2.2 Explain the no-argument constructor of the Rectangle class given above. 3.2.3 Write methods for the Rectangle class to do the following: • a toString() method that returns a string of the format "top left = (x, y); height = h; width = w " where x, y, h and w are the appropriate integer values. • an above() method that tests whether one rectangle is completely above another (i.e. all y values of the one rectangle are greater than all y values of the other). For example, with the following declarations Rectangle r1 = new Rectangle(); Rectangle r2 = new Rectangle(new Point(2,2), 1, 4); the expression r2.above(r1) should give true, and r2.above (r2) should give false. (You can assume that the height of a rectangle is never negative.) (2) (5)

2416


What are the core java topics?

555


What is the importance of static variable?

580


How will you get the platform dependent values like line separator, path separator, etc., ?

573


How do I remove a character from a string in java?

487


How do you control extraneous variables?

495


What is a JAR file?

582