Showing posts with label engineering. Show all posts
Showing posts with label engineering. Show all posts
(Q) How to communicate with data base?
(A) To connect to data base we have set of interfaces provided by Java.sql.*;First you need to load JDBC driver and then Make JDBC connection.
(Q) What are the different types of database drivers?
(A) Four types of drivers available
Type -1: (JDBC-ODBC Bridge Driver)
In this type, you have java API which talks to a native API (JDBC-ODBC Driver) which then talks to a database.
Type-2 (Thick/Native driver)
In this type, you have a native API which talks to a Database.
Type-3 (Network protocol driver)
It`s a three tier architecture, the clienttalks to server with network protocol diver and server uses any one from other three type of drivers. This type of driver is used when lot of concurrency can be done.
Type-4 (Pure or Thin Driver)
It`s complete Java API which talk to a Database, this is most often used driver.
(Q) How to Load the driver?
(A) Use Class.forName(), forName() is a method in Class which returns a class object, to the forName() you provide a string parameter that is the Class that you want to load. To load the Class you need to provide total path including package.
For type-1 Class.forName(“sun.jdbc.odbc.JdbcOdbcDriver”);
For type-2 using Oracle database Class.forName(“oracle.jdbc.driver.OracleDriver”);
(Q) How to fetch the connection?
(A) Connection is the interface in Java.sql package.
For Type-1
Connection con=DriverManager.getConnection(“jdbc:odbc:[odcb dsn]“:”username”:”password”);
(Q) What is a ResultSet ?
(A) ResultSet is a Java Object, it contains the results of executing an SQL query. In other words it is a table of data representing a database result set, which is usually generated by executing a statement that queries the database.
Sample : ResultSet rs = stmt.executeQuery(“SELECT a, b, c FROM Table1″);
(Q) What do you mean by fastest type of JDBC driver?
(A) JDBC driver performance or fastness depends on a number of issues: Quality of the driver code, size of the driver code, database server and its load, Network topology, Number of times your request is translated to a different API.
(Q) Why C++ is called object oriented programming language?
(A) Because C++ supports OOPs features
eg: Data encapsulation, data hiding, data abstraction, inheritance, polymorphism, exception handling, message passing.
(Q) Difference between method overloading and method overriding in C++?
(A) Overloading is a function or method performing additional task in addition to the normal task. i.e Same function handles more than one task.
Overriding is a method is rewritten in the base class. In this is done using inheritance.
(Q) What type of method can be overridden in C++?  
(A) In C++ methods with access specifier public can be overridden.
(Q) Write a program to illustrate method overriding  in C++?
(A)
#include<iostream.h>
Void sum();
Void sum(int);
Void sum(float);
Void sum(int, float);
Void main(){
Int f,s;
Float f1,f2;
clrscr();
cout<<”Enter any 2 intergers:”;
cin>>f>>s;
cout<<”Enter any two float numbers;”;
cin>>f1>>f2;
sum();
sum(f);
sum(f,s);
sum(f1,f2);
}
Void sum(){
Int x,y;
Cout<<”Enter any 2 no:”;
Cin>>x>> y;
Cout<<”Sum vlue=”<<x+y<<endl;
}
Void sum(int x){
Cout<<”Sum vlue=”<<x+x<<endl;
}
}//same way you can add other methods
(Q) Difference between an object and a class?
(A) Class is a collection of data members and methods. Object is an instance of a class. In brief object is a memory space where all the data members and member functions will be loaded.
(Q) What is memory leaking in C++ ?
(A) A memory leak is the situation that occurs when dynamically allocation is used u\without handling properly.
(Q) What are the things contains in .obj file ?
(A) When a C++ program is compiled, the program will be executed and an object file is created which contains all data and suitable linking files in machine understandable language.
(Q) In C++ have a default constructor?
(A) Yes, compiler creates the default constructor only and only if the class doesn’t contain any constructor.
(Q) What is inline function in C++?
(A) Inline is a new topic in C++, When we initialize a function inline and call it in main() then instead of moving the control from calling function to called function, the function body will include at the function calling. Main purpose of Inline function is to improve the program performance. It is recommended not to use inline with long code programs.
(Q) What is Dynamic memory allocation?
(A) int m[10]={1,2,3,4};
In the above example occupied memory is 10*2 = 20 bytes but actually we are using only 4*2 = 8 bytes so 12 bytes of memory is wasted. To stop this wastage of memory we use dynamic memory allocation concept. This will dynamically allocate the memory to the space we used.
Syntax for Dynamic memory allocation: <pointer variable>=new <data type> [size of array];
(Q) What is friend function in C++?
(A) In C++ by default private data can assess only by members of that class but it is not possible to access outside the class functions. This is possible by friend function.
friend function mean it is not a member of that class but can access private data of the class. Just you need to add friend in front of method.
(Q) Which has more priority (.) or (*)?
(A)  Dot(.) operator has more priority than asterisk (*). Using brackets we can implicitly apply * for operands when needed.
Walk-in at Citec Engineering India - 3.5 Lac - Fresher Walk-in for Freshers - Fresher Walkins at Mumbai

Job Description :
We are looking for freshers post graduate with Masters in Structural Engineering in Civil discipline

Education: B.Tech/B.E. - Civil/ M.Tech - (Civil)

Qualification: ME/ Mtech Structures.

Stipend: Rs. 27,000 per month.

Training period: 1 year

Interested candidates are requested to send their resumes in response to this job advertisement.

Regards,

Prashanti Shetty
Human Resource Department


Citec Engineering India Pvt. Ltd
t: +91 22 6768 0200 | f: +91 22 6790 3817 |
Hermes Atrium, Plot No 57, Ground Floor, Sector 11, CBD Belapur, Navi Mumbai – 400 614


Salary:INR 3,00,000 - 3,25,000 P.A

Functional Area: Engineering Design, R&D

Contact Details :
Contact Company: Citec Engineering India Pvt Ltd
Website: http://www.citec.com
Executive Name: Ms. Prashanti Shetty
Email Address: prashanti.shetty@citec.com